xfs: don't update rmapbt when fixing agfl
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 02:19:53 +0000 (12:19 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 02:19:53 +0000 (12:19 +1000)
commit04f130605ff6fb01a93a0885607921df9c463eed
tree6d9affc84c3f54efc92348fc2cfad8328934e9c8
parent2b0eeb5e74ced62a94b01c65ddec9be7e5edcea1
xfs: don't update rmapbt when fixing agfl

Allow a caller of xfs_alloc_fix_freelist to disable rmapbt updates
when fixing the AG freelist.  xfs_repair needs this during phase 5
to be able to adjust the freelist while it's reconstructing the rmap
btree; the missing entries will be added back at the very end of
phase 5 once the AGFL contents settle down.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h