1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2002 Silicon Graphics, Inc.
8 #include "xfs_shared.h"
9 #include "xfs_format.h"
10 #include "xfs_log_format.h"
11 #include "xfs_trans_resv.h"
12 #include "xfs_mount.h"
13 #include "xfs_inode.h"
14 #include "xfs_trans.h"
15 #include "xfs_trans_priv.h"
16 #include "xfs_quota.h"
18 #include "xfs_trace.h"
20 STATIC void xfs_trans_alloc_dqinfo(xfs_trans_t *);
23 * Add the locked dquot to the transaction.
24 * The dquot must be locked, and it cannot be associated with any
30 struct xfs_dquot *dqp)
32 ASSERT(XFS_DQ_IS_LOCKED(dqp));
33 ASSERT(dqp->q_logitem.qli_dquot == dqp);
36 * Get a log_item_desc to point at the new item.
38 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item);
42 * This is called to mark the dquot as needing
43 * to be logged when the transaction is committed. The dquot must
44 * already be associated with the given transaction.
45 * Note that it marks the entire transaction as dirty. In the ordinary
46 * case, this gets called via xfs_trans_commit, after the transaction
47 * is already dirty. However, there's nothing stop this from getting
48 * called directly, as done by xfs_qm_scall_setqlim. Hence, the TRANS_DIRTY
54 struct xfs_dquot *dqp)
56 ASSERT(XFS_DQ_IS_LOCKED(dqp));
58 /* Upgrade the dquot to bigtime format if possible. */
60 xfs_sb_version_hasbigtime(&tp->t_mountp->m_sb) &&
61 !(dqp->q_type & XFS_DQTYPE_BIGTIME))
62 dqp->q_type |= XFS_DQTYPE_BIGTIME;
64 tp->t_flags |= XFS_TRANS_DIRTY;
65 set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags);
69 * Carry forward whatever is left of the quota blk reservation to
70 * the spanky new transaction
74 struct xfs_trans *otp,
75 struct xfs_trans *ntp)
77 struct xfs_dqtrx *oq, *nq;
79 struct xfs_dqtrx *oqa, *nqa;
80 uint64_t blk_res_used;
85 xfs_trans_alloc_dqinfo(ntp);
88 * Because the quota blk reservation is carried forward,
89 * it is also necessary to carry forward the DQ_DIRTY flag.
91 if (otp->t_flags & XFS_TRANS_DQ_DIRTY)
92 ntp->t_flags |= XFS_TRANS_DQ_DIRTY;
94 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) {
95 oqa = otp->t_dqinfo->dqs[j];
96 nqa = ntp->t_dqinfo->dqs[j];
97 for (i = 0; i < XFS_QM_TRANS_MAXDQS; i++) {
100 if (oqa[i].qt_dquot == NULL)
105 if (oq->qt_blk_res && oq->qt_bcount_delta > 0)
106 blk_res_used = oq->qt_bcount_delta;
108 nq->qt_dquot = oq->qt_dquot;
109 nq->qt_bcount_delta = nq->qt_icount_delta = 0;
110 nq->qt_rtbcount_delta = 0;
113 * Transfer whatever is left of the reservations.
115 nq->qt_blk_res = oq->qt_blk_res - blk_res_used;
116 oq->qt_blk_res = blk_res_used;
118 nq->qt_rtblk_res = oq->qt_rtblk_res -
119 oq->qt_rtblk_res_used;
120 oq->qt_rtblk_res = oq->qt_rtblk_res_used;
122 nq->qt_ino_res = oq->qt_ino_res - oq->qt_ino_res_used;
123 oq->qt_ino_res = oq->qt_ino_res_used;
130 * Wrap around mod_dquot to account for both user and group quotas.
133 xfs_trans_mod_dquot_byino(
139 xfs_mount_t *mp = tp->t_mountp;
141 if (!XFS_IS_QUOTA_RUNNING(mp) ||
142 !XFS_IS_QUOTA_ON(mp) ||
143 xfs_is_quota_inode(&mp->m_sb, ip->i_ino))
146 if (tp->t_dqinfo == NULL)
147 xfs_trans_alloc_dqinfo(tp);
149 if (XFS_IS_UQUOTA_ON(mp) && ip->i_udquot)
150 (void) xfs_trans_mod_dquot(tp, ip->i_udquot, field, delta);
151 if (XFS_IS_GQUOTA_ON(mp) && ip->i_gdquot)
152 (void) xfs_trans_mod_dquot(tp, ip->i_gdquot, field, delta);
153 if (XFS_IS_PQUOTA_ON(mp) && ip->i_pdquot)
154 (void) xfs_trans_mod_dquot(tp, ip->i_pdquot, field, delta);
157 STATIC struct xfs_dqtrx *
159 struct xfs_trans *tp,
160 struct xfs_dquot *dqp)
163 struct xfs_dqtrx *qa;
165 switch (xfs_dquot_type(dqp)) {
166 case XFS_DQTYPE_USER:
167 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_USR];
169 case XFS_DQTYPE_GROUP:
170 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_GRP];
172 case XFS_DQTYPE_PROJ:
173 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_PRJ];
179 for (i = 0; i < XFS_QM_TRANS_MAXDQS; i++) {
180 if (qa[i].qt_dquot == NULL ||
181 qa[i].qt_dquot == dqp)
189 * Make the changes in the transaction structure.
190 * The moral equivalent to xfs_trans_mod_sb().
191 * We don't touch any fields in the dquot, so we don't care
192 * if it's locked or not (most of the time it won't be).
196 struct xfs_trans *tp,
197 struct xfs_dquot *dqp,
201 struct xfs_dqtrx *qtrx;
204 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp));
207 if (tp->t_dqinfo == NULL)
208 xfs_trans_alloc_dqinfo(tp);
210 * Find either the first free slot or the slot that belongs
213 qtrx = xfs_trans_get_dqtrx(tp, dqp);
215 if (qtrx->qt_dquot == NULL)
216 qtrx->qt_dquot = dqp;
219 trace_xfs_trans_mod_dquot_before(qtrx);
220 trace_xfs_trans_mod_dquot(tp, dqp, field, delta);
224 /* regular disk blk reservation */
225 case XFS_TRANS_DQ_RES_BLKS:
226 qtrx->qt_blk_res += delta;
229 /* inode reservation */
230 case XFS_TRANS_DQ_RES_INOS:
231 qtrx->qt_ino_res += delta;
234 /* disk blocks used. */
235 case XFS_TRANS_DQ_BCOUNT:
236 qtrx->qt_bcount_delta += delta;
239 case XFS_TRANS_DQ_DELBCOUNT:
240 qtrx->qt_delbcnt_delta += delta;
244 case XFS_TRANS_DQ_ICOUNT:
245 if (qtrx->qt_ino_res && delta > 0) {
246 qtrx->qt_ino_res_used += delta;
247 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used);
249 qtrx->qt_icount_delta += delta;
252 /* rtblk reservation */
253 case XFS_TRANS_DQ_RES_RTBLKS:
254 qtrx->qt_rtblk_res += delta;
258 case XFS_TRANS_DQ_RTBCOUNT:
259 if (qtrx->qt_rtblk_res && delta > 0) {
260 qtrx->qt_rtblk_res_used += delta;
261 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used);
263 qtrx->qt_rtbcount_delta += delta;
266 case XFS_TRANS_DQ_DELRTBCOUNT:
267 qtrx->qt_delrtb_delta += delta;
275 trace_xfs_trans_mod_dquot_after(qtrx);
277 tp->t_flags |= XFS_TRANS_DQ_DIRTY;
282 * Given an array of dqtrx structures, lock all the dquots associated and join
283 * them to the transaction, provided they have been modified. We know that the
284 * highest number of dquots of one type - usr, grp and prj - involved in a
285 * transaction is 3 so we don't need to make this very generic.
288 xfs_trans_dqlockedjoin(
289 struct xfs_trans *tp,
292 ASSERT(q[0].qt_dquot != NULL);
293 if (q[1].qt_dquot == NULL) {
294 xfs_dqlock(q[0].qt_dquot);
295 xfs_trans_dqjoin(tp, q[0].qt_dquot);
297 ASSERT(XFS_QM_TRANS_MAXDQS == 2);
298 xfs_dqlock2(q[0].qt_dquot, q[1].qt_dquot);
299 xfs_trans_dqjoin(tp, q[0].qt_dquot);
300 xfs_trans_dqjoin(tp, q[1].qt_dquot);
304 /* Apply dqtrx changes to the quota reservation counters. */
306 xfs_apply_quota_reservation_deltas(
307 struct xfs_dquot_res *res,
314 * Subtle math here: If reserved > res_used (the normal case),
315 * we're simply subtracting the unused transaction quota
316 * reservation from the dquot reservation.
318 * If, however, res_used > reserved, then we have allocated
319 * more quota blocks than were reserved for the transaction.
320 * We must add that excess to the dquot reservation since it
321 * tracks (usage + resv) and by definition we didn't reserve
324 res->reserved -= abs(reserved - res_used);
325 } else if (count_delta != 0) {
327 * These blks were never reserved, either inside a transaction
328 * or outside one (in a delayed allocation). Also, this isn't
329 * always a negative number since we sometimes deliberately
330 * skip quota reservations.
332 res->reserved += count_delta;
337 * Called by xfs_trans_commit() and similar in spirit to
338 * xfs_trans_apply_sb_deltas().
339 * Go thru all the dquots belonging to this transaction and modify the
340 * INCORE dquot to reflect the actual usages.
341 * Unreserve just the reservations done by this transaction.
342 * dquot is still left locked at exit.
345 xfs_trans_apply_dquot_deltas(
346 struct xfs_trans *tp)
349 struct xfs_dquot *dqp;
350 struct xfs_dqtrx *qtrx, *qa;
352 int64_t totalrtbdelta;
354 if (!(tp->t_flags & XFS_TRANS_DQ_DIRTY))
357 ASSERT(tp->t_dqinfo);
358 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) {
359 qa = tp->t_dqinfo->dqs[j];
360 if (qa[0].qt_dquot == NULL)
364 * Lock all of the dquots and join them to the transaction.
366 xfs_trans_dqlockedjoin(tp, qa);
368 for (i = 0; i < XFS_QM_TRANS_MAXDQS; i++) {
369 uint64_t blk_res_used;
373 * The array of dquots is filled
374 * sequentially, not sparsely.
376 if ((dqp = qtrx->qt_dquot) == NULL)
379 ASSERT(XFS_DQ_IS_LOCKED(dqp));
382 * adjust the actual number of blocks used
386 * The issue here is - sometimes we don't make a blkquota
387 * reservation intentionally to be fair to users
388 * (when the amount is small). On the other hand,
389 * delayed allocs do make reservations, but that's
390 * outside of a transaction, so we have no
391 * idea how much was really reserved.
392 * So, here we've accumulated delayed allocation blks and
393 * non-delay blks. The assumption is that the
394 * delayed ones are always reserved (outside of a
395 * transaction), and the others may or may not have
396 * quota reservations.
398 totalbdelta = qtrx->qt_bcount_delta +
399 qtrx->qt_delbcnt_delta;
400 totalrtbdelta = qtrx->qt_rtbcount_delta +
401 qtrx->qt_delrtb_delta;
403 if (totalbdelta != 0 || totalrtbdelta != 0 ||
404 qtrx->qt_icount_delta != 0) {
405 trace_xfs_trans_apply_dquot_deltas_before(dqp);
406 trace_xfs_trans_apply_dquot_deltas(qtrx);
411 ASSERT(dqp->q_blk.count >= -totalbdelta);
413 if (totalrtbdelta < 0)
414 ASSERT(dqp->q_rtb.count >= -totalrtbdelta);
416 if (qtrx->qt_icount_delta < 0)
417 ASSERT(dqp->q_ino.count >= -qtrx->qt_icount_delta);
420 dqp->q_blk.count += totalbdelta;
422 if (qtrx->qt_icount_delta)
423 dqp->q_ino.count += qtrx->qt_icount_delta;
426 dqp->q_rtb.count += totalrtbdelta;
428 if (totalbdelta != 0 || totalrtbdelta != 0 ||
429 qtrx->qt_icount_delta != 0)
430 trace_xfs_trans_apply_dquot_deltas_after(dqp);
433 * Get any default limits in use.
434 * Start/reset the timer(s) if needed.
437 xfs_qm_adjust_dqlimits(dqp);
438 xfs_qm_adjust_dqtimers(dqp);
441 dqp->q_flags |= XFS_DQFLAG_DIRTY;
443 * add this to the list of items to get logged
445 xfs_trans_log_dquot(tp, dqp);
447 * Take off what's left of the original reservation.
448 * In case of delayed allocations, there's no
449 * reservation that a transaction structure knows of.
451 blk_res_used = max_t(int64_t, 0, qtrx->qt_bcount_delta);
452 xfs_apply_quota_reservation_deltas(&dqp->q_blk,
453 qtrx->qt_blk_res, blk_res_used,
454 qtrx->qt_bcount_delta);
457 * Adjust the RT reservation.
459 xfs_apply_quota_reservation_deltas(&dqp->q_rtb,
461 qtrx->qt_rtblk_res_used,
462 qtrx->qt_rtbcount_delta);
465 * Adjust the inode reservation.
467 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used);
468 xfs_apply_quota_reservation_deltas(&dqp->q_ino,
470 qtrx->qt_ino_res_used,
471 qtrx->qt_icount_delta);
473 ASSERT(dqp->q_blk.reserved >= dqp->q_blk.count);
474 ASSERT(dqp->q_ino.reserved >= dqp->q_ino.count);
475 ASSERT(dqp->q_rtb.reserved >= dqp->q_rtb.count);
481 * Release the reservations, and adjust the dquots accordingly.
482 * This is called only when the transaction is being aborted. If by
483 * any chance we have done dquot modifications incore (ie. deltas) already,
484 * we simply throw those away, since that's the expected behavior
485 * when a transaction is curtailed without a commit.
488 xfs_trans_unreserve_and_mod_dquots(
489 struct xfs_trans *tp)
492 struct xfs_dquot *dqp;
493 struct xfs_dqtrx *qtrx, *qa;
496 if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY))
499 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) {
500 qa = tp->t_dqinfo->dqs[j];
502 for (i = 0; i < XFS_QM_TRANS_MAXDQS; i++) {
505 * We assume that the array of dquots is filled
506 * sequentially, not sparsely.
508 if ((dqp = qtrx->qt_dquot) == NULL)
511 * Unreserve the original reservation. We don't care
512 * about the number of blocks used field, or deltas.
513 * Also we don't bother to zero the fields.
516 if (qtrx->qt_blk_res) {
519 dqp->q_blk.reserved -=
520 (xfs_qcnt_t)qtrx->qt_blk_res;
522 if (qtrx->qt_ino_res) {
527 dqp->q_ino.reserved -=
528 (xfs_qcnt_t)qtrx->qt_ino_res;
531 if (qtrx->qt_rtblk_res) {
536 dqp->q_rtb.reserved -=
537 (xfs_qcnt_t)qtrx->qt_rtblk_res;
548 struct xfs_mount *mp,
549 struct xfs_dquot *dqp,
552 enum quota_type qtype;
554 switch (xfs_dquot_type(dqp)) {
555 case XFS_DQTYPE_PROJ:
558 case XFS_DQTYPE_USER:
561 case XFS_DQTYPE_GROUP:
568 quota_send_warning(make_kqid(&init_user_ns, qtype, dqp->q_id),
569 mp->m_super->s_dev, type);
573 * Decide if we can make an additional reservation against a quota resource.
574 * Returns an inode QUOTA_NL_ warning code and whether or not it's fatal.
576 * Note that we assume that the numeric difference between the inode and block
577 * warning codes will always be 3 since it's userspace ABI now, and will never
578 * decrease the quota reservation, so the *BELOW messages are irrelevant.
582 struct xfs_dquot_res *res,
583 struct xfs_quota_limits *qlim,
587 xfs_qcnt_t hardlimit = res->hardlimit;
588 xfs_qcnt_t softlimit = res->softlimit;
589 xfs_qcnt_t total_count = res->reserved + delta;
591 BUILD_BUG_ON(QUOTA_NL_BHARDWARN != QUOTA_NL_IHARDWARN + 3);
592 BUILD_BUG_ON(QUOTA_NL_BSOFTLONGWARN != QUOTA_NL_ISOFTLONGWARN + 3);
593 BUILD_BUG_ON(QUOTA_NL_BSOFTWARN != QUOTA_NL_ISOFTWARN + 3);
597 return QUOTA_NL_NOWARN;
600 hardlimit = qlim->hard;
602 softlimit = qlim->soft;
604 if (hardlimit && total_count > hardlimit) {
606 return QUOTA_NL_IHARDWARN;
609 if (softlimit && total_count > softlimit) {
610 time64_t now = ktime_get_real_seconds();
612 if ((res->timer != 0 && now > res->timer) ||
613 (res->warnings != 0 && res->warnings >= qlim->warn)) {
615 return QUOTA_NL_ISOFTLONGWARN;
619 return QUOTA_NL_ISOFTWARN;
622 return QUOTA_NL_NOWARN;
626 * This reserves disk blocks and inodes against a dquot.
627 * Flags indicate if the dquot is to be locked here and also
628 * if the blk reservation is for RT or regular blocks.
629 * Sending in XFS_QMOPT_FORCE_RES flag skips the quota check.
633 struct xfs_trans *tp,
634 struct xfs_mount *mp,
635 struct xfs_dquot *dqp,
640 struct xfs_quotainfo *q = mp->m_quotainfo;
641 struct xfs_def_quota *defq;
642 struct xfs_dquot_res *blkres;
643 struct xfs_quota_limits *qlim;
647 defq = xfs_get_defquota(q, xfs_dquot_type(dqp));
649 if (flags & XFS_TRANS_DQ_RES_BLKS) {
650 blkres = &dqp->q_blk;
653 blkres = &dqp->q_rtb;
657 if ((flags & XFS_QMOPT_FORCE_RES) == 0 && dqp->q_id &&
658 xfs_dquot_is_enforced(dqp)) {
663 * dquot is locked already. See if we'd go over the hardlimit
664 * or exceed the timelimit if we'd reserve resources.
666 quota_nl = xfs_dqresv_check(blkres, qlim, nblks, &fatal);
667 if (quota_nl != QUOTA_NL_NOWARN) {
669 * Quota block warning codes are 3 more than the inode
670 * codes, which we check above.
672 xfs_quota_warn(mp, dqp, quota_nl + 3);
677 quota_nl = xfs_dqresv_check(&dqp->q_ino, &defq->ino, ninos,
679 if (quota_nl != QUOTA_NL_NOWARN) {
680 xfs_quota_warn(mp, dqp, quota_nl);
687 * Change the reservation, but not the actual usage.
688 * Note that q_blk.reserved = q_blk.count + resv
690 blkres->reserved += (xfs_qcnt_t)nblks;
691 dqp->q_ino.reserved += (xfs_qcnt_t)ninos;
694 * note the reservation amt in the trans struct too,
695 * so that the transaction knows how much was reserved by
696 * it against this particular dquot.
697 * We don't do this when we are reserving for a delayed allocation,
698 * because we don't have the luxury of a transaction envelope then.
701 ASSERT(tp->t_dqinfo);
702 ASSERT(flags & XFS_QMOPT_RESBLK_MASK);
704 xfs_trans_mod_dquot(tp, dqp,
705 flags & XFS_QMOPT_RESBLK_MASK,
708 xfs_trans_mod_dquot(tp, dqp,
709 XFS_TRANS_DQ_RES_INOS,
712 ASSERT(dqp->q_blk.reserved >= dqp->q_blk.count);
713 ASSERT(dqp->q_rtb.reserved >= dqp->q_rtb.count);
714 ASSERT(dqp->q_ino.reserved >= dqp->q_ino.count);
721 if (xfs_dquot_type(dqp) == XFS_DQTYPE_PROJ)
728 * Given dquot(s), make disk block and/or inode reservations against them.
729 * The fact that this does the reservation against user, group and
730 * project quotas is important, because this follows a all-or-nothing
733 * flags = XFS_QMOPT_FORCE_RES evades limit enforcement. Used by chown.
734 * XFS_QMOPT_ENOSPC returns ENOSPC not EDQUOT. Used by pquota.
735 * XFS_TRANS_DQ_RES_BLKS reserves regular disk blocks
736 * XFS_TRANS_DQ_RES_RTBLKS reserves realtime disk blocks
737 * dquots are unlocked on return, if they were not locked by caller.
740 xfs_trans_reserve_quota_bydquots(
741 struct xfs_trans *tp,
742 struct xfs_mount *mp,
743 struct xfs_dquot *udqp,
744 struct xfs_dquot *gdqp,
745 struct xfs_dquot *pdqp,
752 if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
755 if (tp && tp->t_dqinfo == NULL)
756 xfs_trans_alloc_dqinfo(tp);
758 ASSERT(flags & XFS_QMOPT_RESBLK_MASK);
761 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, flags);
767 error = xfs_trans_dqresv(tp, mp, gdqp, nblks, ninos, flags);
773 error = xfs_trans_dqresv(tp, mp, pdqp, nblks, ninos, flags);
779 * Didn't change anything critical, so, no need to log
784 flags |= XFS_QMOPT_FORCE_RES;
786 xfs_trans_dqresv(tp, mp, gdqp, -nblks, -ninos, flags);
788 flags |= XFS_QMOPT_FORCE_RES;
790 xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags);
796 * Lock the dquot and change the reservation if we can.
797 * This doesn't change the actual usage, just the reservation.
798 * The inode sent in is locked.
801 xfs_trans_reserve_quota_nblks(
802 struct xfs_trans *tp,
803 struct xfs_inode *ip,
808 struct xfs_mount *mp = ip->i_mount;
810 if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
813 ASSERT(!xfs_is_quota_inode(&mp->m_sb, ip->i_ino));
815 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
816 ASSERT((flags & ~(XFS_QMOPT_FORCE_RES)) == XFS_TRANS_DQ_RES_RTBLKS ||
817 (flags & ~(XFS_QMOPT_FORCE_RES)) == XFS_TRANS_DQ_RES_BLKS);
820 * Reserve nblks against these dquots, with trans as the mediator.
822 return xfs_trans_reserve_quota_bydquots(tp, mp,
823 ip->i_udquot, ip->i_gdquot,
825 nblks, ninos, flags);
829 * This routine is called to allocate a quotaoff log item.
831 struct xfs_qoff_logitem *
832 xfs_trans_get_qoff_item(
833 struct xfs_trans *tp,
834 struct xfs_qoff_logitem *startqoff,
837 struct xfs_qoff_logitem *q;
841 q = xfs_qm_qoff_logitem_init(tp->t_mountp, startqoff, flags);
845 * Get a log_item_desc to point at the new item.
847 xfs_trans_add_item(tp, &q->qql_item);
853 * This is called to mark the quotaoff logitem as needing
854 * to be logged when the transaction is committed. The logitem must
855 * already be associated with the given transaction.
858 xfs_trans_log_quotaoff_item(
859 struct xfs_trans *tp,
860 struct xfs_qoff_logitem *qlp)
862 tp->t_flags |= XFS_TRANS_DIRTY;
863 set_bit(XFS_LI_DIRTY, &qlp->qql_item.li_flags);
867 xfs_trans_alloc_dqinfo(
870 tp->t_dqinfo = kmem_cache_zalloc(xfs_qm_dqtrxzone,
871 GFP_KERNEL | __GFP_NOFAIL);
875 xfs_trans_free_dqinfo(
880 kmem_cache_free(xfs_qm_dqtrxzone, tp->t_dqinfo);