]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: move the zero records logic into xfs_bmap_broot_space_calc
authorDarrick J. Wong <djwong@kernel.org>
Tue, 7 Mar 2023 03:55:34 +0000 (19:55 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:35 +0000 (15:03 -0800)
commitcb90ec4c12bd3fef067ce3d1b134a2b004b96188
tree81f079e9871d3828efefcd6109df50bf310be39f
parent1519d0498f6272769bc8855c0b44dddcd513c693
xfs: move the zero records logic into xfs_bmap_broot_space_calc

The bmap btree cannot ever have zero records in an incore btree block.
If the number of records drops to zero, that means we're converting the
fork to extents format and are trying to remove the tree.  This logic
won't hold for the future realtime rmap btree, so move the logic into
the bmbt code.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_bmap_btree.h
libxfs/xfs_inode_fork.c