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)
commitae7913ba52ec4a2883eb073c6bc99f1a8d9d636b
tree00576efe054975968e4fffeb4105baac9a1f8443
parent576fa34830afac6a40cd19c777f1ab49c914e87c
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