diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-08-07 10:37:59 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-08-15 19:40:13 +0200 |
commit | 9a20d391cd099d547c0f17626bf6f13e06da519a (patch) | |
tree | a01af28421ad0670b3cfbc548f39d3b0fdd2cf26 /fs/f2fs | |
parent | f2fs: introduce gc_urgent mode for background GC (diff) | |
download | linux-9a20d391cd099d547c0f17626bf6f13e06da519a.tar.xz linux-9a20d391cd099d547c0f17626bf6f13e06da519a.zip |
f2fs: avoid unneeded sync on quota file
We only need to sync quota file with appointed quota type instead of all
types in f2fs_quota_{on,off}.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ca340d84f8c2..54b8ff4c6fc9 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1176,7 +1176,7 @@ static int f2fs_quota_on(struct super_block *sb, int type, int format_id, struct inode *inode; int err; - err = f2fs_quota_sync(sb, -1); + err = f2fs_quota_sync(sb, type); if (err) return err; @@ -1204,7 +1204,7 @@ static int f2fs_quota_off(struct super_block *sb, int type) if (!inode || !igrab(inode)) return dquot_quota_off(sb, type); - f2fs_quota_sync(sb, -1); + f2fs_quota_sync(sb, type); err = dquot_quota_off(sb, type); if (err) |