Commit 9a20d391 authored by Chao Yu's avatar Chao Yu Committed by 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: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d9872a69
...@@ -1176,7 +1176,7 @@ static int f2fs_quota_on(struct super_block *sb, int type, int format_id, ...@@ -1176,7 +1176,7 @@ static int f2fs_quota_on(struct super_block *sb, int type, int format_id,
struct inode *inode; struct inode *inode;
int err; int err;
err = f2fs_quota_sync(sb, -1); err = f2fs_quota_sync(sb, type);
if (err) if (err)
return err; return err;
...@@ -1204,7 +1204,7 @@ static int f2fs_quota_off(struct super_block *sb, int type) ...@@ -1204,7 +1204,7 @@ static int f2fs_quota_off(struct super_block *sb, int type)
if (!inode || !igrab(inode)) if (!inode || !igrab(inode))
return dquot_quota_off(sb, type); return dquot_quota_off(sb, type);
f2fs_quota_sync(sb, -1); f2fs_quota_sync(sb, type);
err = dquot_quota_off(sb, type); err = dquot_quota_off(sb, type);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment