aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_exchrange.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-11-04 04:19:33 +0000
committerDarrick J. Wong <[email protected]>2024-11-05 21:38:43 +0000
commit3f0205ebe71f92c1b98ca580de8df6eea631cfd2 (patch)
treed41e718022ca420c52bd5a60eafef217ffba10e2 /fs/xfs/xfs_exchrange.c
parentxfs: create helpers to deal with rounding xfs_fileoff_t to rtx boundaries (diff)
downloadkernel-3f0205ebe71f92c1b98ca580de8df6eea631cfd2.tar.gz
kernel-3f0205ebe71f92c1b98ca580de8df6eea631cfd2.zip
xfs: create helpers to deal with rounding xfs_filblks_t to rtx boundaries
We're about to segment xfs_rtblock_t addresses, so we must create type-specific helpers to do rt extent rounding of file mapping block lengths because the rtb helpers soon will not do the right thing there. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
-rw-r--r--fs/xfs/xfs_exchrange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_exchrange.c b/fs/xfs/xfs_exchrange.c
index 75cb53f090d1..f644c4cc77fa 100644
--- a/fs/xfs/xfs_exchrange.c
+++ b/fs/xfs/xfs_exchrange.c
@@ -217,7 +217,7 @@ xfs_exchrange_mappings(
* length in @fxr are safe to round up.
*/
if (xfs_inode_has_bigrtalloc(ip2))
- req.blockcount = xfs_rtb_roundup_rtx(mp, req.blockcount);
+ req.blockcount = xfs_blen_roundup_rtx(mp, req.blockcount);
error = xfs_exchrange_estimate(&req);
if (error)