btrfs: add helper for fs_info->closing
[pandora-kernel.git] / fs / btrfs / scrub.c
index 1204eab..df50fd1 100644 (file)
@@ -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;
 
        /*