From: Jaegeuk Kim Date: Wed, 3 Oct 2018 00:20:58 +0000 (-0700) Subject: f2fs: allow to mount, if quota is failed X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6096^2~12 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=730746ce88da943088fe9aeb845a5daf6e315d98;p=linux.git f2fs: allow to mount, if quota is failed Since we can use the filesystem without quotas till next boot. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 19933d839008..262a27744eb1 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3190,11 +3190,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 */ @@ -3295,9 +3293,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);