btrfs: check ticket->steal in steal_from_global_block_rsv
authorJosef Bacik <josef@toxicpanda.com>
Tue, 9 Nov 2021 15:12:03 +0000 (10:12 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:45 +0000 (15:09 +0100)
commit1b0309eaa426242e168cf6a51dd707962d81578b
tree9d39d550276c40af0fb77cc86c68f8f6be40250f
parent9cd8dcdc5e5c459bcd01a97c8c8d6bc2c8d73fdf
btrfs: check ticket->steal in steal_from_global_block_rsv

We're going to use this helper in the priority flushing loop, move this
check into the helper to simplify the logic.

Reviewed-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/space-info.c