summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-03-20 13:30:59 +1030
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:39 +0200
commitaf821cba725f31d7305db26cffb07f4d2b96f34f (patch)
treedc8d11da9c4104234d2cf64d24ac44b4c5496837 /tools/perf/scripts/python
parentafe990fb59c152adef5a80c9168e990e2610b1f7 (diff)
downloadlinux-af821cba725f31d7305db26cffb07f4d2b96f34f.tar.gz
linux-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 <johannes.thumshirn@wdc.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions