ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.
commit53d737879cbbe3886e26f155007dbc148aec1cb6
authorTao Ma <tao.ma@oracle.com>
Wed, 3 Mar 2010 03:26:27 +0000 (3 11:26 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:58 +0000 (26 07:47 -0700)
treebbc9fbcb42aded1607761d371dd9608fe78b5c0a
parent4cf04e523cb863e6d8cc59a25ff7836917f39c45
ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.

commit 78c37eb0d5e6a9727b12ea0f1821795ffaa66cfe upstream.

In ocfs2_validate_gd_parent, we check bg_chain against the
cl_next_free_rec of the dinode. Actually in resize, we have
the chance of bg_chain == cl_next_free_rec. So add some
additional condition check for it.

I also rename paramter "clean_error" to "resize", since the
old one is not clearly enough to indicate that we should only
meet with this case in resize.

btw, the correpsonding bug is
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1230.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ocfs2/suballoc.c