ocfs2: rollback transaction in ocfs2_group_add()
authorYounger Liu <younger.liu@huawei.com>
Tue, 12 Nov 2013 23:07:03 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:01 +0000 (12:09 +0900)
commiteedd40e1cad4217c9b7e2577debcdd0c48732cc3
tree7392d157fe0a7d306e3b63e457529c3846497c41
parent728b98059a2f19393f906ba4febc0f2d1d15f280
ocfs2: rollback transaction in ocfs2_group_add()

If ocfs2_journal_access_di() fails, group->bg_next_group should rollback.
Otherwise, there would be a inconsistency between group_bh and main_bm_bh.

Signed-off-by: Younger Liu <younger.liu@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Acked-by: 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/resize.c