nilfs2: fix disorder in cp count on error during deleting checkpoints
commit23e839dc9cad6ea1d74a26abbf8dca6f785ca193
authorJiro SEKIBA <jir@unicus.jp>
Sat, 4 Jul 2009 14:00:53 +0000 (4 23:00 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:39:50 +0000 (30 14:39 -0700)
tree39afeb21992968630954108ff131f13d29a4d972
parent7e59192836ca78e2fcc1448f7ece7192e1bf01f5
nilfs2: fix disorder in cp count on error during deleting checkpoints

commit d9a0a345ab7a58a30ec38e5bb7401a28714914d2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nilfs2/cpfile.c