diff options
| author | Qu Wenruo <wqu@suse.com> | 2025-03-20 13:30:59 +1030 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:39 +0200 |
| commit | af821cba725f31d7305db26cffb07f4d2b96f34f (patch) | |
| tree | dc8d11da9c4104234d2cf64d24ac44b4c5496837 /tools/perf/scripts/python | |
| parent | afe990fb59c152adef5a80c9168e990e2610b1f7 (diff) | |
| download | linux-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
