]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename need_do_async_reclaim
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Oct 2020 13:28:23 +0000 (09:28 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:58 +0000 (22:58 +0100)
commitf99d9ff0c579ae6f8a782c0aabb4ea584c91cee5
tree00576efe054975968e4fffeb4105baac9a1f8443
parent70cbaec644db7ebe5b0d5ffde3609d575ba8ab0d
btrfs: rename need_do_async_reclaim

All of our normal flushing is asynchronous reclaim, so this helper is
poorly named.  This is more checking if we need to preemptively flush
space, so rename it to need_preemptive_reclaim.

Also switch it to bool and make it plain static as followup patches will
move more code here.

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