]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: actually bump warning counts when we send warnings
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 14 Jul 2020 17:37:35 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commit44992ec23fa5c676d0053a2cb49b9ef0b7f681a9
tree54f7e39e0b9ee06f5303d492cf87f43ae7192210
parent9fae1cf29cc85bcff9687b51e54befd9ce339d18
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>
fs/xfs/xfs_trans_dquot.c