]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use the btrfs_space_info_free_bytes_may_use helper for delalloc
authorJosef Bacik <josef@toxicpanda.com>
Tue, 21 Jul 2020 14:22:20 +0000 (10:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:52 +0000 (12:06 +0200)
commit1347f9a84c7ea3c8a82a768c697e442cd0b3d58a
treef17237a4f0d3f19f3235af09b3ab9e3edb278470
parentbe5aad5b1ab42b4b4fb1c0d4c58a634ebd788376
btrfs: use the btrfs_space_info_free_bytes_may_use helper for delalloc

We are going to use the ticket infrastructure for data, so use the
btrfs_space_info_free_bytes_may_use() helper in
btrfs_free_reserved_data_space_noquota() so we get the
btrfs_try_granting_tickets call when we free our reservation.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delalloc-space.c