aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-inode.c
diff options
context:
space:
mode:
authorJing Xia <[email protected]>2024-09-03 05:40:12 +0000
committerDavid Sterba <[email protected]>2025-01-13 13:53:21 +0000
commit2fa07d7a0f0084d9777f076a154ad10e759ba731 (patch)
tree724a6ad3e6b856a10b5255eebc4fe0eae9f1bd7c /fs/btrfs/delayed-inode.c
parentbtrfs: print read policy on module load (diff)
downloadkernel-2fa07d7a0f0084d9777f076a154ad10e759ba731.tar.gz
kernel-2fa07d7a0f0084d9777f076a154ad10e759ba731.zip
btrfs: pass write-hint for buffered IO
Commit 449813515d3e ("block, fs: Restore the per-bio/request data lifetime fields") restored write-hint support in btrfs. But that is applicable only for direct IO. This patch supports passing write-hint for buffered IO from btrfs file system to block layer by filling bi_write_hint of struct bio in alloc_new_bio(). There's an ongoing discussion which devices can use that, https://lore.kernel.org/all/[email protected], in SCSI there's support using sd_group_number() and sd_setup_rw32_cmnd(). The hint goes from the application directly to the block device so it's up to the application to set up everything properly to utilize the different hint classes. Link: https://lore.kernel.org/all/[email protected] Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Jing Xia <[email protected]> [ Add more context and use case. ] Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions