diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index f56230759b381c60c4deb347c46ff3078b4dcb12..0a820ba55b10b8ee8fcbed7be826a8bfd3b878a5 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1265,7 +1265,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data) err = dquot_suspend(sb, -1); if (err < 0) goto restore_opts; - } else { + } else if (f2fs_readonly(sb) && !(*flags & MS_RDONLY)) { /* dquot_resume needs RW */ sb->s_flags &= ~SB_RDONLY; if (sb_any_quota_suspended(sb)) {