diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index f3fd7e2cbc38..66b8341e2dba 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -511,6 +511,10 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data) | |||
511 | struct btrfs_root *root = btrfs_sb(sb); | 511 | struct btrfs_root *root = btrfs_sb(sb); |
512 | int ret; | 512 | int ret; |
513 | 513 | ||
514 | ret = btrfs_parse_options(root, data); | ||
515 | if (ret) | ||
516 | return -EINVAL; | ||
517 | |||
514 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) | 518 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) |
515 | return 0; | 519 | return 0; |
516 | 520 | ||