提交 9a20d391 编写于 作者: C Chao Yu 提交者: Jaegeuk Kim

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: NChao Yu <yuchao0@huawei.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 d9872a69
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册