]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: call btrfs_try_granting_tickets when reserving space
authorJosef Bacik <josef@toxicpanda.com>
Tue, 21 Jul 2020 14:22:19 +0000 (10:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:51 +0000 (12:06 +0200)
commita6f9ea44df5f927e0d4e2c41a6e016a76bce10a1
tree98bf6dc8bfa1a55cdd4d617afd014fe4547d44bc
parent7cba73cad07675517bf715702ff10af4a6d782b3
btrfs: call btrfs_try_granting_tickets when reserving space

If we have compression on we could free up more space than we reserved,
and thus be able to make a space reservation.  Add the call for this
scenario.

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