btrfs: add helper for fs_info->closing
wrap checking of filesystem 'closing' flag and fix a few missing memory barriers. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
committed by
Chris Mason
parent
4b9465cb9e
commit
7841cb2898
@@ -1183,7 +1183,7 @@ int btrfs_scrub_dev(struct btrfs_root *root, u64 devid, u64 start, u64 end,
|
||||
int ret;
|
||||
struct btrfs_device *dev;
|
||||
|
||||
if (root->fs_info->closing)
|
||||
if (btrfs_fs_closing(root->fs_info))
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user