diff options
| author | Josef Bacik <[email protected]> | 2020-07-21 10:22:28 -0400 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-10-07 12:06:53 +0200 |
| commit | f3bda421c16fe2f67cb3ff81b65ce8de331dd8e2 (patch) | |
| tree | c382df51968f1260d6ea991a6b365066fdd2b6cd /tools/perf/scripts/python/flamegraph.py | |
| parent | 0532a6f8b6ce64ced0ffcca0a2ab5d66a8eb9a6d (diff) | |
btrfs: use the same helper for data and metadata reservations
Now that data reservations follow the same pattern as metadata
reservations we can simply rename __reserve_metadata_bytes to
__reserve_bytes and use that helper for data reservations.
Things to keep in mind, btrfs_can_overcommit() returns 0 for data,
because we can never overcommit. We also will never pass in FLUSH_ALL
for data, so we'll simply be added to the priority list and go straight
into handle_reserve_ticket.
Reviewed-by: Nikolay Borisov <[email protected]>
Tested-by: Nikolay Borisov <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions