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 f439111 commit edb46ddCopy full SHA for edb46dd
fs/quota/dquot.c
@@ -2594,7 +2594,8 @@ static int dquot_quota_enable(struct super_block *sb, unsigned int flags)
2594
goto out_err;
2595
}
2596
if (sb_has_quota_limits_enabled(sb, type)) {
2597
- ret = -EBUSY;
+ /* compatible with XFS */
2598
+ ret = -EEXIST;
2599
2600
2601
spin_lock(&dq_state_lock);
@@ -2608,9 +2609,6 @@ static int dquot_quota_enable(struct super_block *sb, unsigned int flags)
2608
2609
if (flags & qtype_enforce_flag(type))
2610
dquot_disable(sb, type, DQUOT_LIMITS_ENABLED);
2611
- /* Error code translation for better compatibility with XFS */
2612
- if (ret == -EBUSY)
2613
- ret = -EEXIST;
2614
return ret;
2615
2616
0 commit comments