ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.
authorTao Ma <tao.ma@oracle.com>
Wed, 3 Mar 2010 03:26:27 +0000 (11:26 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:29 +0000 (07:41 -0700)
commit26ec941a150774814a0416b28c7e8d22bfb777f8
tree6eab26ab87e73bb81ea37c1f7a18610f159e141b
parent80acb6490eca937a70e00e69fcae35f92ea0ad63
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