diff options
| author | 2020-07-21 10:22:28 -0400 | |
|---|---|---|
| committer | 2020-10-07 12:06:53 +0200 | |
| commit | f3bda421c16fe2f67cb3ff81b65ce8de331dd8e2 (patch) | |
| tree | c382df51968f1260d6ea991a6b365066fdd2b6cd /scripts/Makefile.thinlto | |
| parent | btrfs: serialize data reservations if we are flushing (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 <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
