]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: call btrfs_try_granting_tickets when unpinning anything
authorJosef Bacik <josef@toxicpanda.com>
Tue, 21 Jul 2020 14:22:18 +0000 (10:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:51 +0000 (12:06 +0200)
commit7cba73cad07675517bf715702ff10af4a6d782b3
tree7992543f9c774d2c9aef80734664c459c497b4ae
parentad0f1d57b9803132a75cb575ab32151204cf16b0
btrfs: call btrfs_try_granting_tickets when unpinning anything

When unpinning we were only calling btrfs_try_granting_tickets() if
global_rsv->space_info == space_info, which is problematic because we
use ticketing for SYSTEM chunks, and want to use it for DATA as well.
Fix this by moving this call outside of that if statement.

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/extent-tree.c