diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0ebaf5d116bc..d6715c2bcdc4 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -4426,7 +4426,7 @@ static long btrfs_ioctl_dev_replace(struct btrfs_fs_info *fs_info, | |||
4426 | 4426 | ||
4427 | switch (p->cmd) { | 4427 | switch (p->cmd) { |
4428 | case BTRFS_IOCTL_DEV_REPLACE_CMD_START: | 4428 | case BTRFS_IOCTL_DEV_REPLACE_CMD_START: |
4429 | if (fs_info->sb->s_flags & MS_RDONLY) { | 4429 | if (sb_rdonly(fs_info->sb)) { |
4430 | ret = -EROFS; | 4430 | ret = -EROFS; |
4431 | goto out; | 4431 | goto out; |
4432 | } | 4432 | } |