Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ba42f41 authored by Chao Yu's avatar Chao Yu Committed by Sahitya Tummala
Browse files

f2fs: avoid unneeded sync on quota file



commit 9a20d391cd099d547c0f17626bf6f13e06da519a upstream.

We only need to sync quota file with appointed quota type instead of all
types in f2fs_quota_{on,off}.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 6199dd01
Git-repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent c71cb7f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1162,7 +1162,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;

@@ -1190,7 +1190,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)