]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: refactor xfs_rtbitmap_blockcount
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:20 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:29 +0000 (18:01 -0800)
commitb3d80952d04d4f06fb90ddbd7b79da69219237c2
tree38b67e8b52463f14f7ce3287219fa1532634f8bc
parent884acdc480c969a131b4a1f0578be1f5127ff2d6
xfs: refactor xfs_rtbitmap_blockcount

Source kernel commit: 5a7566c8d6b9b5c0aac34882f30448d29d9deafc

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h
libxfs/xfs_trans_resv.c