ocfs2: Set ac_last_group properly with discontig group.
authorTao Ma <tao.ma@oracle.com>
Tue, 27 Apr 2010 00:30:36 +0000 (08:30 +0800)
committerTao Ma <tao.ma@oracle.com>
Tue, 27 Apr 2010 00:30:36 +0000 (08:30 +0800)
commitabf1b3cb5b20fbad27ca9c7497235eeb4dd3f4fd
treecd3abb6c107dfdc09c1d8014832ee27803e9e8f6
parent74380c479ad83addeff8a172ab95f59557b5b0c3
ocfs2: Set ac_last_group properly with discontig group.

ac_last_group is used to record the last block group we
used during allocation. But the initialization process
only calls ocfs2_which_suballoc_group and fails to
use suballoc_loc properly. So let us do it.
Another function ocfs2_test_suballoc_bit also needs fix.

I have searched all the callers of ocfs2_which_suballoc_group,
and all the callers notices suballoc_loc now.

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