diff options
| author | Christoph Hellwig <[email protected]> | 2023-12-18 04:57:33 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2023-12-22 05:48:14 +0000 |
| commit | 3abfe6c2759e2e3000b13f8ce8a1a325e80987a1 (patch) | |
| tree | 991c6a4046f2c6bf96d09dc7d8066ecdd92c0b84 /fs/xfs/xfs_rtalloc.c | |
| parent | xfs: factor out a xfs_rtalloc_sumlevel helper (diff) | |
| download | kernel-3abfe6c2759e2e3000b13f8ce8a1a325e80987a1.tar.gz kernel-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 <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
| -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; |
