aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-08-07 16:37:59 +0800
committerMister Oyster <oysterized@gmail.com>2017-10-04 15:33:12 +0200
commitf26a925cdb060a8619c8e14a9b75b3ebe6709b53 (patch)
treec71c9fc0bb7f07326de51c813c7107f7985c8f09
parent0d9128e4ccfa31ef2ef1c797ab9710a74d7ebc4b (diff)
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>
-rw-r--r--fs/f2fs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 4631c2a98..aafebe110 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1177,7 +1177,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;
@@ -1205,7 +1205,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)