Skip to content

Commit bc37e4f

Browse files
Eric Sandeendchinner
authored andcommitted
xfs: revert "xfs: actually bump warning counts when we send warnings"
This reverts commit 4b8628d. XFS quota has had the concept of a "quota warning limit" since the earliest Irix implementation, but a mechanism for incrementing the warning counter was never implemented, as documented in the xfs_quota(8) man page. We do know from the historical archive that it was never incremented at runtime during quota reservation operations. With this commit, the warning counter quickly increments for every allocation attempt after the user has crossed a quote soft limit threshold, and this in turn transitions the user to hard quota failures, rendering soft quota thresholds and timers useless. This was reported as a regression by users. Because the intended behavior of this warning counter has never been understood or documented, and the result of this change is a regression in soft quota functionality, revert this commit to make soft quota limits and timers operable again. Fixes: 4b8628d ("xfs: actually bump warning counts when we send warnings) Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
1 parent f650df7 commit bc37e4f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/xfs/xfs_trans_dquot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ xfs_dqresv_check(
603603
return QUOTA_NL_ISOFTLONGWARN;
604604
}
605605

606-
res->warnings++;
607606
return QUOTA_NL_ISOFTWARN;
608607
}
609608

0 commit comments

Comments
 (0)