summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-07-16 11:14:11 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-29 20:29:54 -0700
commit7a419863b28842576119e0aa92bff964635545f5 (patch)
treeaeb5f3de3099020f52083065f4335105f2413155
parent82dd562b0f1d514483b59235bd9332917205c6c3 (diff)
xfs: actually bump warning counts when we send warnings
Currently, xfs quotas have the ability to send netlink warnings when a user exceeds the limits. They also have all the support code necessary to convert softlimit warnings into failures if the number of warnings exceeds a limit set by the administrator. Unfortunately, we never actually increase the warning counter, so this never actually happens. Make it so we actually do something useful with the warning counts. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--fs/xfs/xfs_trans_dquot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c
index 510b9c3164d6..6be6287da1ac 100644
--- a/fs/xfs/xfs_trans_dquot.c
+++ b/fs/xfs/xfs_trans_dquot.c
@@ -589,6 +589,7 @@ xfs_dqresv_check(
return QUOTA_NL_ISOFTLONGWARN;
}
+ res->warnings++;
return QUOTA_NL_ISOFTWARN;
}