summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-18 05:57:33 +0100
committerChandan Babu R <chandanbabu@kernel.org>2023-12-22 11:18:14 +0530
commit3abfe6c2759e2e3000b13f8ce8a1a325e80987a1 (patch)
tree991c6a4046f2c6bf96d09dc7d8066ecdd92c0b84 /fs/xfs/scrub
parent8ceee72fdb6f26fe924e02b3342353bac5efa42d (diff)
downloadlinux-stable-3abfe6c2759e2e3000b13f8ce8a1a325e80987a1.tar.gz
linux-stable-3abfe6c2759e2e3000b13f8ce8a1a325e80987a1.tar.bz2
linux-stable-3abfe6c2759e2e3000b13f8ce8a1a325e80987a1.zip
xfs: remove rt-wrappers from xfs_format.h
xfs_format.h has a bunch odd wrappers for helper functions and mount structure access using RT* prefixes. Replace them with their open coded versions (for those that weren't entirely unused) and remove the wrappers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/rtsummary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/rtsummary.c b/fs/xfs/scrub/rtsummary.c
index b0d90426a5cb..fabd0ed9dfa6 100644
--- a/fs/xfs/scrub/rtsummary.c
+++ b/fs/xfs/scrub/rtsummary.c
@@ -177,7 +177,7 @@ xchk_rtsum_record_free(
/* Compute the relevant location in the rtsum file. */
rbmoff = xfs_rtx_to_rbmblock(mp, rec->ar_startext);
- lenlog = XFS_RTBLOCKLOG(rec->ar_extcount);
+ lenlog = xfs_highbit64(rec->ar_extcount);
offs = xfs_rtsumoffs(mp, lenlog, rbmoff);
rtbno = xfs_rtx_to_rtb(mp, rec->ar_startext);