]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: add free entries count only if clear bit operation succeeded
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 22 Feb 2011 17:26:17 +0000 (02:26 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 8 Mar 2011 05:58:04 +0000 (14:58 +0900)
commit3cab23a63767dc97657176a8ecbcfa1986dfbb3a
tree562b473d974ee6715cff8732e518a9e187c50d38
parentc732108c0d5c0cc78803f9d1fa716f1b8076a855
nilfs2: add free entries count only if clear bit operation succeeded

Three functions of the current persistent object allocator,
nilfs_palloc_commit_free_entry, nilfs_palloc_abort_alloc_entry, and
nilfs_palloc_freev functions unconditionally add a counter after doing
clear bit operation on a bitmap block.

If the clear bit operation overlapped, the counter will not add up.
This fixes the issue by making the counter operations conditional.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/alloc.c