mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user