projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ca321
)
f2fs: enable quota at remount from r to w
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 2 Jan 2018 19:03:19 +0000
(11:03 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 4 Jan 2018 06:48:25 +0000
(22:48 -0800)
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>
fs/f2fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index f56230759b381c60c4deb347c46ff3078b4dcb12..0a820ba55b10b8ee8fcbed7be826a8bfd3b878a5 100644
(file)
--- 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)) {