ocfs2: Use the right group in nfs sync check.
authorTao Ma <tao.ma@oracle.com>
Thu, 2 Sep 2010 05:10:10 +0000 (13:10 +0800)
committerTao Ma <tao.ma@oracle.com>
Wed, 8 Sep 2010 06:25:56 +0000 (14:25 +0800)
commit889f004a8c83d515f275078687f859bc0d5ede9d
treed1b35ad545a4a68fefd1618a591a9d26ccd15ced
parent04eda1a18019bb387dc7e97ee99979dd88dc608a
ocfs2: Use the right group in nfs sync check.

We have added discontig block group now, and now an inode
can be allocated in an discontig block group. So get
it in ocfs2_get_suballoc_slot_bit.

The old ocfs2_test_suballoc_bit gets group block no
from the allocation inode which is wrong. Fix it by
passing the right group.

Acked-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/suballoc.c