]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: refactor xfs_rtbitmap_blockcount
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:44:08 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:49 +0000 (13:44 -0700)
commit8092d6c6597f674aea65c1e8a8c5d2d598070c97
tree6a19f9bff83e3eb7c2a919284b6d8d08808eb6cb
parentecb0f5ac4b118a668015693084e4f2be1b8dcf96
xfs: refactor xfs_rtbitmap_blockcount

Rename the existing xfs_rtbitmap_blockcount to
xfs_rtbitmap_blockcount_len and add a new xfs_rtbitmap_blockcount wrapper
around it that takes the number of extents from the mount structure.

This will simplify the move to per-rtgroup bitmaps as those will need to
pass in the number of extents per rtgroup instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h
libxfs/xfs_trans_resv.c