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 2e42b7f commit 6213f5dCopy full SHA for 6213f5d
fs/f2fs/super.c
@@ -2692,7 +2692,8 @@ int f2fs_quota_sync(struct super_block *sb, int type)
2692
if (!sb_has_quota_active(sb, cnt))
2693
continue;
2694
2695
- inode_lock(dqopt->files[cnt]);
+ if (!f2fs_sb_has_quota_ino(sbi))
2696
+ inode_lock(dqopt->files[cnt]);
2697
2698
/*
2699
* do_quotactl
@@ -2711,7 +2712,8 @@ int f2fs_quota_sync(struct super_block *sb, int type)
2711
2712
f2fs_up_read(&sbi->quota_sem);
2713
f2fs_unlock_op(sbi);
2714
- inode_unlock(dqopt->files[cnt]);
2715
2716
+ inode_unlock(dqopt->files[cnt]);
2717
2718
if (ret)
2719
break;
0 commit comments