mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-02 11:13:02 +09:00
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: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -1266,7 +1266,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)) {
|
||||
|
||||
Reference in New Issue
Block a user