diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-07-14 19:37:35 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-07-29 05:24:14 +0200 |
commit | 4b8628d57b725b32616965e66975fcdebe008fe7 (patch) | |
tree | 54f7e39e0b9ee06f5303d492cf87f43ae7192210 /fs/xfs/xfs_trans_dquot.c | |
parent | xfs: assume the default quota limits are always set in xfs_qm_adjust_dqlimits (diff) | |
download | linux-4b8628d57b725b32616965e66975fcdebe008fe7.tar.xz linux-4b8628d57b725b32616965e66975fcdebe008fe7.zip |
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>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Diffstat (limited to 'fs/xfs/xfs_trans_dquot.c')
-rw-r--r-- | fs/xfs/xfs_trans_dquot.c | 1 |
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; } |