ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.
commit78c37eb0d5e6a9727b12ea0f1821795ffaa66cfe
authorTao Ma <tao.ma@oracle.com>
Wed, 3 Mar 2010 03:26:27 +0000 (3 11:26 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 17 Mar 2010 19:07:21 +0000 (17 12:07 -0700)
treed789252a4335a1ac0910d34be29fe43bc4153d9c
parentee860b6a650360c91f5d5f9a94262aad9be90015
ocfs2: Change bg_chain check for ocfs2_validate_gd_parent.

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>
fs/ocfs2/suballoc.c