aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/rtbitmap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-11-04 04:19:14 +0000
committerDarrick J. Wong <[email protected]>2024-11-05 21:38:38 +0000
commit5a7566c8d6b9b5c0aac34882f30448d29d9deafc (patch)
treec5605ca68bfd77fa3f839077d355d8d6b71bd55d /fs/xfs/scrub/rtbitmap.c
parentxfs: factor out a xfs_growfs_check_rtgeom helper (diff)
downloadkernel-5a7566c8d6b9b5c0aac34882f30448d29d9deafc.tar.gz
kernel-5a7566c8d6b9b5c0aac34882f30448d29d9deafc.zip
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/scrub/rtbitmap.c')
-rw-r--r--fs/xfs/scrub/rtbitmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/scrub/rtbitmap.c b/fs/xfs/scrub/rtbitmap.c
index 5b42e01a07ac..ababbf4068d6 100644
--- a/fs/xfs/scrub/rtbitmap.c
+++ b/fs/xfs/scrub/rtbitmap.c
@@ -67,8 +67,7 @@ xchk_setup_rtbitmap(
if (mp->m_sb.sb_rblocks) {
rtb->rextents = xfs_rtb_to_rtx(mp, mp->m_sb.sb_rblocks);
rtb->rextslog = xfs_compute_rextslog(rtb->rextents);
- rtb->rbmblocks = xfs_rtbitmap_blockcount(mp,
- mp->m_sb.sb_rextents);
+ rtb->rbmblocks = xfs_rtbitmap_blockcount(mp);
}
return 0;