]> 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>
Thu, 15 Aug 2024 18:56:34 +0000 (11:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:57:38 +0000 (14:57 -0700)
commit65531f3ca5d5424b2825eced9821b096fb8dd7db
tree711e8b98c5ada66fe2cbaac64b865d7bc6e8e2a2
parent46814f8777c85d486397fc6751aa3c135108f420
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