diff options
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1411b99555a4..48a06d1fc067 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -1633,7 +1633,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path) | |||
1633 | int ret = 0; | 1633 | int ret = 0; |
1634 | 1634 | ||
1635 | if ((sb->s_flags & MS_RDONLY) && !root->fs_info->fs_devices->seeding) | 1635 | if ((sb->s_flags & MS_RDONLY) && !root->fs_info->fs_devices->seeding) |
1636 | return -EINVAL; | 1636 | return -EROFS; |
1637 | 1637 | ||
1638 | bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, | 1638 | bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, |
1639 | root->fs_info->bdev_holder); | 1639 | root->fs_info->bdev_holder); |