]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: don't update rmapbt when fixing agfl
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 04:52:20 +0000 (14:52 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 04:52:20 +0000 (14:52 +1000)
commite365af6fec1c31b27dbdf011cef90ef285e6dc56
tree5e9ef93b6f46232e2dd74149646d4bf54f357f30
parent966d818e7d2ac3d0dc5cb926b17c2b428b156f82
xfs: don't update rmapbt when fixing agfl

Source kernel commit: 04f130605ff6fb01a93a0885607921df9c463eed

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>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h