nilfs2: fix disorder in cp count on error during deleting checkpoints
authorJiro SEKIBA <jir@unicus.jp>
Sat, 4 Jul 2009 14:00:53 +0000 (23:00 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 5 Jul 2009 01:44:20 +0000 (10:44 +0900)
commitd9a0a345ab7a58a30ec38e5bb7401a28714914d2
treea4f6943de6fa3c2088623e56587fef4bfb7ad66b
parentff54de363afa4583e2a6249f25fe21dfaeb11ea2
nilfs2: fix disorder in cp count on error during deleting checkpoints

This fixes a bug that checkpoint count gets wrong on errors when
deleting a series of checkpoints.

The count error is persistent since the checkpoint count is stored on
disk.  Some userland programs refer to the count via ioctl, and this
bugfix is needed to prevent malfunction of such programs.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: stable@kernel.org
fs/nilfs2/cpfile.c