aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dquot.h
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-07-14 10:37:31 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-07-28 20:24:14 -0700
commitbe37d40c1ba0b5484ea2f8c109a9eda13e4c690a (patch)
tree05c574cf82039f117c0d65a318373497a7a3528f /fs/xfs/xfs_dquot.h
parentxfs: stop using q_core limits in the quota code (diff)
downloadlinux-be37d40c1ba0b5484ea2f8c109a9eda13e4c690a.tar.gz
linux-be37d40c1ba0b5484ea2f8c109a9eda13e4c690a.tar.bz2
linux-be37d40c1ba0b5484ea2f8c109a9eda13e4c690a.zip
xfs: stop using q_core counters in the quota code
Add counter fields to the incore dquot, and use that instead of the ones in qcore. This eliminates a bunch of endian conversions and will eventually allow us to remove qcore entirely. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
-rw-r--r--fs/xfs/xfs_dquot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dquot.h b/fs/xfs/xfs_dquot.h
index 59790140fcb6..f5f0a15c0f7b 100644
--- a/fs/xfs/xfs_dquot.h
+++ b/fs/xfs/xfs_dquot.h
@@ -31,6 +31,9 @@ struct xfs_dquot_res {
/* Total resources allocated and reserved. */
xfs_qcnt_t reserved;
+ /* Total resources allocated. */
+ xfs_qcnt_t count;
+
/* Absolute and preferred limits. */
xfs_qcnt_t hardlimit;
xfs_qcnt_t softlimit;