]> 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)
commit4f35babec8aa7442c3d68f03d4514bea6e3b61b4
tree00576efe054975968e4fffeb4105baac9a1f8443
parente17432c3375724916c8740837efe3f8539a164b0
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