xfs: use a per-resource struct for incore dquot data
Introduce a new struct xfs_dquot_res that we'll use to track all the incore data for a particular resource type (block, inode, rt block). This will help us (once we've eliminated q_core) to declutter quota functions that currently open-code field access or pass around fields around explicitly. 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>
This commit is contained in:
@@ -879,7 +879,7 @@ DECLARE_EVENT_CLASS(xfs_dquot_class,
|
||||
__entry->id = dqp->q_id;
|
||||
__entry->flags = dqp->dq_flags | dqp->q_flags;
|
||||
__entry->nrefs = dqp->q_nrefs;
|
||||
__entry->res_bcount = dqp->q_res_bcount;
|
||||
__entry->res_bcount = dqp->q_blk.reserved;
|
||||
__entry->bcount = be64_to_cpu(dqp->q_core.d_bcount);
|
||||
__entry->icount = be64_to_cpu(dqp->q_core.d_icount);
|
||||
__entry->blk_hardlimit =
|
||||
|
Reference in New Issue
Block a user