|
@@ -1152,13 +1152,15 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
|
|
if (ret)
|
|
if (ret)
|
|
goto restore;
|
|
goto restore;
|
|
} else {
|
|
} else {
|
|
- if (fs_info->fs_devices->rw_devices == 0)
|
|
|
|
|
|
+ if (fs_info->fs_devices->rw_devices == 0) {
|
|
ret = -EACCES;
|
|
ret = -EACCES;
|
|
goto restore;
|
|
goto restore;
|
|
|
|
+ }
|
|
|
|
|
|
- if (btrfs_super_log_root(fs_info->super_copy) != 0)
|
|
|
|
|
|
+ if (btrfs_super_log_root(fs_info->super_copy) != 0) {
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
goto restore;
|
|
goto restore;
|
|
|
|
+ }
|
|
|
|
|
|
ret = btrfs_cleanup_fs_roots(fs_info);
|
|
ret = btrfs_cleanup_fs_roots(fs_info);
|
|
if (ret)
|
|
if (ret)
|