aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2025-03-20 03:00:59 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:39 +0000
commitaf821cba725f31d7305db26cffb07f4d2b96f34f (patch)
treedc8d11da9c4104234d2cf64d24ac44b4c5496837 /fs/btrfs/extent_io.c
parentbtrfs: cleanup the reserved space inside loop of btrfs_buffered_write() (diff)
downloadkernel-af821cba725f31d7305db26cffb07f4d2b96f34f.tar.gz
kernel-af821cba725f31d7305db26cffb07f4d2b96f34f.zip
btrfs: factor out space reservation code from btrfs_buffered_write()
Inside the main loop of btrfs_buffered_write(), we have a complex data and metadata space reservation code, which tries to reserve space for a COW write, if failed then fallback to check if we can do a NOCOW write. Factor out that part of code into a dedicated helper, reserve_space(), to make the main loop a little easier to read. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions