From: Sheng Yong Date: Thu, 26 Jul 2018 11:24:25 +0000 (+0800) Subject: f2fs: quota: fix incorrect comments X-Git-Tag: v4.19-rc1~57^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76cf05d79c9ef02d5afa77abaf9b109afde794c4;p=thirdparty%2Fkernel%2Flinux.git f2fs: quota: fix incorrect comments Signed-off-by: Sheng Yong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index c5fd318c06d20..3f11b3abd7666 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -661,7 +661,10 @@ int f2fs_recover_orphan_inodes(struct f2fs_sb_info *sbi) /* Needed for iput() to work correctly and not trash data */ sbi->sb->s_flags |= SB_ACTIVE; - /* Turn on quotas so that they are updated correctly */ + /* + * Turn on quotas which were not enabled for read-only mounts if + * filesystem has quota feature, so that they are updated correctly. + */ quota_enabled = f2fs_enable_quota_files(sbi, s_flags & SB_RDONLY); #endif diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index bdea57067bc08..26a7673551043 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2955,10 +2955,7 @@ try_onemore: goto free_root_inode; #ifdef CONFIG_QUOTA - /* - * Turn on quotas which were not enabled for read-only mounts if - * filesystem has quota feature, so that they are updated correctly. - */ + /* Enable quota usage during mount */ if (f2fs_sb_has_quota_ino(sb) && !f2fs_readonly(sb)) { err = f2fs_enable_quotas(sb); if (err) {