diff options
| author | Darrick J. Wong <[email protected]> | 2024-11-04 04:19:33 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-11-05 21:38:43 +0000 |
| commit | 3f0205ebe71f92c1b98ca580de8df6eea631cfd2 (patch) | |
| tree | d41e718022ca420c52bd5a60eafef217ffba10e2 /fs/xfs/libxfs/xfs_rtbitmap.c | |
| parent | xfs: create helpers to deal with rounding xfs_fileoff_t to rtx boundaries (diff) | |
| download | kernel-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/libxfs/xfs_rtbitmap.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_rtbitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rtbitmap.c b/fs/xfs/libxfs/xfs_rtbitmap.c index 5abfd84852ce..30220bf8c3f4 100644 --- a/fs/xfs/libxfs/xfs_rtbitmap.c +++ b/fs/xfs/libxfs/xfs_rtbitmap.c @@ -1123,7 +1123,7 @@ xfs_rtfree_blocks( ASSERT(rtlen <= XFS_MAX_BMBT_EXTLEN); - mod = xfs_rtb_to_rtxoff(mp, rtlen); + mod = xfs_blen_to_rtxoff(mp, rtlen); if (mod) { ASSERT(mod == 0); return -EIO; |
