]> 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, 9 Jan 2024 17:40:05 +0000 (09:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:41 +0000 (17:21 -0700)
commit220b5813f62e40ada75aa0a53e155b7533c3fe96
tree6bd4610fd512f1b6d45ee096dd37b03a110c25a8
parent679ed43d3cad68850be74cd946629f032564ad77
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