diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-07-15 22:45:21 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 13:27:54 +0300 |
commit | 2f12741f81af638dfb682dc2f24e6cbb67a37a2e (patch) | |
tree | 7d03a02d1e0a20e44f5c713b401406015cbe23d1 /fs/btrfs/space-info.c | |
parent | d1f68ba0695a0ceba1a2ec72ee9b949fe4b92c98 (diff) | |
download | linux-2f12741f81af638dfb682dc2f24e6cbb67a37a2e.tar.xz |
btrfs: use btrfs_fs_closing for background bg work
For both unused bg deletion and async balance work we'll happily run if
the fs is closing. However I want to move these to their own worker
thread, and they can be long running jobs, so add a check to see if
we're closing and simply bail.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/space-info.c')
0 files changed, 0 insertions, 0 deletions