* [PATCH] f2fs: avoid unneeded sync on quota file
@ 2017-08-07 8:37 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2017-08-07 8:37 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, chao, Chao Yu
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>
---
fs/f2fs/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 5310bd80f72c..4b292f5dce89 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1458,7 +1458,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;
@@ -1486,7 +1486,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)
--
2.13.1.388.g69e6b9b4f4a9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-07 8:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07 8:37 [PATCH] f2fs: avoid unneeded sync on quota file Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).