]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: rollback the cleared bits if error occurs after ocfs2_block_group_clear_bits
authorJoseph Qi <joseph.qi@huawei.com>
Tue, 14 Apr 2015 22:43:27 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:48:58 +0000 (16:48 -0700)
commit93b20ae646f6e17d6a4670e2b0b4b2c98c5c2912
treedb86b25fa9dac5b76e0cbbf1973d5359306bab6e
parent9aac2529d4d5f251983ac46109d9f7c96af5b4dc
ocfs2: rollback the cleared bits if error occurs after ocfs2_block_group_clear_bits

ocfs2_block_group_clear_bits will clear bits in block group bitmap.
Once it succeeds but fails in the following step, it will cause block
group bitmap mismatch the corresponding count recorded in dinode.
So rollback the cleared bits if error occurs.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/suballoc.c