diff options
author | 2023-12-18 05:57:33 +0100 | |
---|---|---|
committer | 2023-12-22 11:18:14 +0530 | |
commit | 3abfe6c2759e2e3000b13f8ce8a1a325e80987a1 (patch) | |
tree | 991c6a4046f2c6bf96d09dc7d8066ecdd92c0b84 /fs/xfs/xfs_rtalloc.c | |
parent | xfs: factor out a xfs_rtalloc_sumlevel helper (diff) | |
download | wireguard-linux-3abfe6c2759e2e3000b13f8ce8a1a325e80987a1.tar.xz wireguard-linux-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 '')
-rw-r--r-- | fs/xfs/xfs_rtalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index cd183d050fd2..be93542827cf 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -156,7 +156,7 @@ xfs_rtallocate_range( * (old) free extent. */ error = xfs_rtmodify_summary(args, - XFS_RTBLOCKLOG(postblock + 1 - preblock), + xfs_highbit64(postblock + 1 - preblock), xfs_rtx_to_rbmblock(mp, preblock), -1); if (error) return error; @@ -167,7 +167,7 @@ xfs_rtallocate_range( */ if (preblock < start) { error = xfs_rtmodify_summary(args, - XFS_RTBLOCKLOG(start - preblock), + xfs_highbit64(start - preblock), xfs_rtx_to_rbmblock(mp, preblock), 1); if (error) return error; @@ -179,7 +179,7 @@ xfs_rtallocate_range( */ if (postblock > end) { error = xfs_rtmodify_summary(args, - XFS_RTBLOCKLOG(postblock - end), + xfs_highbit64(postblock - end), xfs_rtx_to_rbmblock(mp, end + 1), 1); if (error) return error; |