]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd47e130252b38afa8852ab3c15129d06c8d096d
tree9d39d550276c40af0fb77cc86c68f8f6be40250f
parent673b7dbf8da2a2b9b543b728060a8efce6e55bc5
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