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)
commit3308234a7e9828f8cbec308010348ddf712fc15e
tree05625728bbd665c4e539b52a5ff43aa28426e4e8
parentc6c453032ea3b9033f0a312175aab6519ff9bdf7
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