Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2f13783 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: enable quota at remount from r to w



We have to enable quota only when remounting from read to write. Otherwise,
we'll get remount failure. (e.g., write to write case)

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d507f300
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 &= ~MS_RDONLY;
		if (sb_any_quota_suspended(sb)) {