OSDN Git Service

f2fs: quota: fix incorrect comments
authorSheng Yong <shengyong1@huawei.com>
Thu, 26 Jul 2018 11:24:25 +0000 (19:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 18 Sep 2018 20:39:25 +0000 (13:39 -0700)
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/super.c

index 6a6cfa8..fb9529a 100644 (file)
@@ -662,7 +662,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 |= MS_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 & MS_RDONLY);
 #endif
 
index 9cd7c3d..45f6858 100644 (file)
@@ -2963,10 +2963,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) {