btrfs: cleanup the target logic in __btrfs_block_rsv_release
authorJosef Bacik <josef@toxicpanda.com>
Wed, 19 Jun 2019 17:47:20 +0000 (13:47 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Jul 2019 10:30:54 +0000 (12:30 +0200)
commitfcec36224fc674953eadfca05c69225e6595641b
tree1de8986e37b3ace5667397db7628e2e15b8d3164
parentfed14b323db868c3ac0071925763964a6ca58883
btrfs: cleanup the target logic in __btrfs_block_rsv_release

This works for all callers already, but if we wanted to use the helper
for the global_block_rsv it would end up trying to refill itself.  Fix
the logic to be able to be used no matter which block rsv is passed in
to this helper.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c