From: Younger Liu Date: Thu, 3 Apr 2014 21:47:10 +0000 (-0700) Subject: ocfs2: rollback alloc_dinode counts when ocfs2_block_group_set_bits() failed X-Git-Tag: v3.15-rc1~106^2~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db66c71577d525c0cd65e66ff675747565783ba4;p=pandora-kernel.git ocfs2: rollback alloc_dinode counts when ocfs2_block_group_set_bits() failed After updating alloc_dinode counts in ocfs2_alloc_dinode_update_counts(), if ocfs2_alloc_dinode_update_bitmap() failed, there is a rare case that some space may be lost. So, roll back alloc_dinode counts when ocfs2_block_group_set_bits() failed. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Younger Liu Reviewed-by: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed