xfs: stop using q_core warning counters in the quota code
Add warning 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>
This commit is contained in:
@@ -616,12 +616,12 @@ xfs_qm_init_timelimits(
|
||||
defq->itimelimit = be32_to_cpu(ddqp->d_itimer);
|
||||
if (ddqp->d_rtbtimer)
|
||||
defq->rtbtimelimit = be32_to_cpu(ddqp->d_rtbtimer);
|
||||
if (ddqp->d_bwarns)
|
||||
defq->bwarnlimit = be16_to_cpu(ddqp->d_bwarns);
|
||||
if (ddqp->d_iwarns)
|
||||
defq->iwarnlimit = be16_to_cpu(ddqp->d_iwarns);
|
||||
if (ddqp->d_rtbwarns)
|
||||
defq->rtbwarnlimit = be16_to_cpu(ddqp->d_rtbwarns);
|
||||
if (dqp->q_blk.warnings)
|
||||
defq->bwarnlimit = dqp->q_blk.warnings;
|
||||
if (dqp->q_ino.warnings)
|
||||
defq->iwarnlimit = dqp->q_ino.warnings;
|
||||
if (dqp->q_rtb.warnings)
|
||||
defq->rtbwarnlimit = dqp->q_rtb.warnings;
|
||||
|
||||
xfs_qm_dqdestroy(dqp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user