summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-10-02 17:20:58 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2018-10-29 18:46:23 -0700
commit05d4dcf63d564bf54f3bb2f310c1eff31ba5de02 (patch)
tree126cecf7875cf4dfb4ce2daa8d9741d47cfa4d2d
parentfe2b3bc0fc9f37f6e672cce4d969c8b5020f4380 (diff)
f2fs: allow to mount, if quota is failed
Since we can use the filesystem without quotas till next boot. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 41e0609e7e30..53d549f0145a 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -3197,11 +3197,9 @@ try_onemore:
/* Enable quota usage during mount */
if (f2fs_sb_has_quota_ino(sb) && !f2fs_readonly(sb)) {
err = f2fs_enable_quotas(sb);
- if (err) {
+ if (err)
f2fs_msg(sb, KERN_ERR,
"Cannot turn on quotas: error %d", err);
- goto free_sysfs;
- }
}
#endif
/* if there are nt orphan nodes free them */
@@ -3302,9 +3300,6 @@ free_meta:
* falls into an infinite loop in f2fs_sync_meta_pages().
*/
truncate_inode_pages_final(META_MAPPING(sbi));
-#ifdef CONFIG_QUOTA
-free_sysfs:
-#endif
f2fs_unregister_sysfs(sbi);
free_root_inode:
dput(sb->s_root);