diff options
| author | Christoph Hellwig <[email protected]> | 2024-11-17 07:53:10 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2025-03-03 15:16:45 +0000 |
| commit | bdc03eb5f98f6f1ae4bd5e020d1582a23efb7799 (patch) | |
| tree | 92643c5f3c8297c306100d0849e929a10481a913 /fs/xfs/xfs_rtalloc.c | |
| parent | xfs: define the zoned on-disk format (diff) | |
| download | kernel-bdc03eb5f98f6f1ae4bd5e020d1582a23efb7799.tar.gz kernel-bdc03eb5f98f6f1ae4bd5e020d1582a23efb7799.zip | |
xfs: allow internal RT devices for zoned mode
Allow creating an RT subvolume on the same device as the main data
device. This is mostly used for SMR HDDs where the conventional zones
are used for the data device and the sequential write required zones
for the zoned RT section.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
| -rw-r--r-- | fs/xfs/xfs_rtalloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index afe8664804a9..741ccdde2dbe 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -1266,7 +1266,8 @@ xfs_rt_check_size( return -EFBIG; } - error = xfs_buf_read_uncached(mp->m_rtdev_targp, daddr, + error = xfs_buf_read_uncached(mp->m_rtdev_targp, + XFS_FSB_TO_BB(mp, mp->m_sb.sb_rtstart) + daddr, XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL); if (error) xfs_warn(mp, "cannot read last RT device sector (%lld)", |
