]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit372336fa97cc102574d5dbf38c35e5dc0720b9f7
treea4f6943de6fa3c2088623e56587fef4bfb7ad66b
parent0214567476694301fc45fcca5725f66e5edfa7f6
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