xfs: stop using q_core.d_id in the quota code
Add a dquot id field to the incore dquot, and use that instead of the one in qcore. This eliminates a bunch of endian conversions and will eventually allow us to remove qcore entirely. We also rearrange the start of xfs_dquot to remove padding holes, saving 8 bytes. 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:
@@ -876,7 +876,7 @@ DECLARE_EVENT_CLASS(xfs_dquot_class,
|
||||
), \
|
||||
TP_fast_assign(
|
||||
__entry->dev = dqp->q_mount->m_super->s_dev;
|
||||
__entry->id = be32_to_cpu(dqp->q_core.d_id);
|
||||
__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;
|
||||
|
Reference in New Issue
Block a user