]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: rollback transaction in ocfs2_group_add()
authorYounger Liu <younger.liu@huawei.com>
Tue, 5 Nov 2013 05:55:06 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:06 +0000 (16:55 +1100)
commita512d1505f5187d39cab27bdd0bdfac3ed3f1836
tree635af25bc250bef2d4578c74b0a7bce5d1ff1844
parentd7a50a174b6046dc758358a8bb64c92b267b1caa
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>
fs/ocfs2/resize.c