]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: call btrfs_try_granting_tickets when freeing reserved bytes
authorJosef Bacik <josef@toxicpanda.com>
Tue, 21 Jul 2020 14:22:17 +0000 (10:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:51 +0000 (12:06 +0200)
commitad0f1d57b9803132a75cb575ab32151204cf16b0
tree05625728bbd665c4e539b52a5ff43aa28426e4e8
parent5907564b6a337c25b04082005b80adf8c656c05c
btrfs: call btrfs_try_granting_tickets when freeing reserved bytes

We were missing a call to btrfs_try_granting_tickets in
btrfs_free_reserved_bytes, so add it to handle the case where we're able
to satisfy an allocation because we've freed a pending reservation.

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>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c