aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-01-27 14:35:00 +0000
committerChristoph Hellwig <[email protected]>2025-03-03 15:17:07 +0000
commit2e2383405824b9f94299f6cb29e53a11f8020b8a (patch)
tree16375d249278c923876ac4397f6a41137a694491 /fs/xfs/xfs_rtalloc.c
parentxfs: implement buffered writes to zoned RT devices (diff)
downloadkernel-2e2383405824b9f94299f6cb29e53a11f8020b8a.tar.gz
kernel-2e2383405824b9f94299f6cb29e53a11f8020b8a.zip
xfs: implement direct writes to zoned RT devices
Direct writes to zoned RT devices are extremely simple. After taking the block reservation before acquiring the iolock, the iomap direct I/O calls into ->iomap_begin which will return a "fake" iomap for the entire requested range. The actual block allocation is then done from the submit_io handler using code shared with the buffered I/O path. The iomap_dio_ops set the bio_set to the (iomap) ioend one and initialize the embedded ioend, which allows reusing the existing ioend based buffered I/O completion path. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
0 files changed, 0 insertions, 0 deletions