]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: refactor xfs_rtbitmap_blockcount
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:38:56 +0000 (12:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:36:10 +0000 (13:36 -0800)
commite6b76f012c671a26c5c46a0b80d33ccd9035c398
treec5605ca68bfd77fa3f839077d355d8d6b71bd55d
parent0a2b7c7c43aab465e42a77df5b2c842751bbf1c9
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>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/libxfs/xfs_trans_resv.c
fs/xfs/scrub/rtbitmap.c
fs/xfs/scrub/rtsummary.c
fs/xfs/xfs_rtalloc.c