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 fa1b78cf25f6..8a27255173b7 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -4438,7 +4438,7 @@ static long btrfs_ioctl_dev_replace(struct btrfs_fs_info *fs_info, | |||
4438 | 4438 | ||
4439 | switch (p->cmd) { | 4439 | switch (p->cmd) { |
4440 | case BTRFS_IOCTL_DEV_REPLACE_CMD_START: | 4440 | case BTRFS_IOCTL_DEV_REPLACE_CMD_START: |
4441 | if (fs_info->sb->s_flags & MS_RDONLY) { | 4441 | if (sb_rdonly(fs_info->sb)) { |
4442 | ret = -EROFS; | 4442 | ret = -EROFS; |
4443 | goto out; | 4443 | goto out; |
4444 | } | 4444 | } |