diff options
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 1204eab94028..df50fd1eca8f 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c | |||
@@ -1183,7 +1183,7 @@ int btrfs_scrub_dev(struct btrfs_root *root, u64 devid, u64 start, u64 end, | |||
1183 | int ret; | 1183 | int ret; |
1184 | struct btrfs_device *dev; | 1184 | struct btrfs_device *dev; |
1185 | 1185 | ||
1186 | if (root->fs_info->closing) | 1186 | if (btrfs_fs_closing(root->fs_info)) |
1187 | return -EINVAL; | 1187 | return -EINVAL; |
1188 | 1188 | ||
1189 | /* | 1189 | /* |