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:
@@ -592,7 +592,7 @@ xfs_trans_dqresv(
|
||||
if (!softlimit)
|
||||
softlimit = defq->bsoftlimit;
|
||||
timer = be32_to_cpu(dqp->q_core.d_btimer);
|
||||
warns = be16_to_cpu(dqp->q_core.d_bwarns);
|
||||
warns = dqp->q_blk.warnings;
|
||||
warnlimit = defq->bwarnlimit;
|
||||
resbcountp = &dqp->q_blk.reserved;
|
||||
} else {
|
||||
@@ -604,7 +604,7 @@ xfs_trans_dqresv(
|
||||
if (!softlimit)
|
||||
softlimit = defq->rtbsoftlimit;
|
||||
timer = be32_to_cpu(dqp->q_core.d_rtbtimer);
|
||||
warns = be16_to_cpu(dqp->q_core.d_rtbwarns);
|
||||
warns = dqp->q_rtb.warnings;
|
||||
warnlimit = defq->rtbwarnlimit;
|
||||
resbcountp = &dqp->q_rtb.reserved;
|
||||
}
|
||||
@@ -639,7 +639,7 @@ xfs_trans_dqresv(
|
||||
if (ninos > 0) {
|
||||
total_count = dqp->q_ino.reserved + ninos;
|
||||
timer = be32_to_cpu(dqp->q_core.d_itimer);
|
||||
warns = be16_to_cpu(dqp->q_core.d_iwarns);
|
||||
warns = dqp->q_ino.warnings;
|
||||
warnlimit = defq->iwarnlimit;
|
||||
hardlimit = dqp->q_ino.hardlimit;
|
||||
if (!hardlimit)
|
||||
|
Reference in New Issue
Block a user