We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc4028 commit 01572a3Copy full SHA for 01572a3
fs/f2fs/super.c
@@ -2705,7 +2705,8 @@ int f2fs_quota_sync(struct super_block *sb, int type)
2705
if (!sb_has_quota_active(sb, cnt))
2706
continue;
2707
2708
- inode_lock(dqopt->files[cnt]);
+ if (!f2fs_sb_has_quota_ino(sbi))
2709
+ inode_lock(dqopt->files[cnt]);
2710
2711
/*
2712
* do_quotactl
@@ -2724,7 +2725,8 @@ int f2fs_quota_sync(struct super_block *sb, int type)
2724
2725
up_read(&sbi->quota_sem);
2726
f2fs_unlock_op(sbi);
2727
- inode_unlock(dqopt->files[cnt]);
2728
2729
+ inode_unlock(dqopt->files[cnt]);
2730
2731
if (ret)
2732
break;
0 commit comments