mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
12d720fb86
commit
4b8628d57b
@ -589,6 +589,7 @@ xfs_dqresv_check(
|
||||
return QUOTA_NL_ISOFTLONGWARN;
|
||||
}
|
||||
|
||||
res->warnings++;
|
||||
return QUOTA_NL_ISOFTWARN;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user