Lines Matching full:mp
37 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
38 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
53 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
58 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
191 struct xfs_mount *mp) in xfs_qm_dqpurge_all() argument
193 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
194 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
195 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
203 struct xfs_mount *mp) in xfs_qm_unmount() argument
205 if (mp->m_quotainfo) { in xfs_qm_unmount()
206 xfs_qm_dqpurge_all(mp); in xfs_qm_unmount()
207 xfs_qm_destroy_quotainfo(mp); in xfs_qm_unmount()
216 xfs_mount_t *mp) in xfs_qm_unmount_quotas() argument
222 ASSERT(mp->m_rootip); in xfs_qm_unmount_quotas()
223 xfs_qm_dqdetach(mp->m_rootip); in xfs_qm_unmount_quotas()
224 if (mp->m_rbmip) in xfs_qm_unmount_quotas()
225 xfs_qm_dqdetach(mp->m_rbmip); in xfs_qm_unmount_quotas()
226 if (mp->m_rsumip) in xfs_qm_unmount_quotas()
227 xfs_qm_dqdetach(mp->m_rsumip); in xfs_qm_unmount_quotas()
232 if (mp->m_quotainfo) { in xfs_qm_unmount_quotas()
233 if (mp->m_quotainfo->qi_uquotaip) { in xfs_qm_unmount_quotas()
234 xfs_irele(mp->m_quotainfo->qi_uquotaip); in xfs_qm_unmount_quotas()
235 mp->m_quotainfo->qi_uquotaip = NULL; in xfs_qm_unmount_quotas()
237 if (mp->m_quotainfo->qi_gquotaip) { in xfs_qm_unmount_quotas()
238 xfs_irele(mp->m_quotainfo->qi_gquotaip); in xfs_qm_unmount_quotas()
239 mp->m_quotainfo->qi_gquotaip = NULL; in xfs_qm_unmount_quotas()
241 if (mp->m_quotainfo->qi_pquotaip) { in xfs_qm_unmount_quotas()
242 xfs_irele(mp->m_quotainfo->qi_pquotaip); in xfs_qm_unmount_quotas()
243 mp->m_quotainfo->qi_pquotaip = NULL; in xfs_qm_unmount_quotas()
297 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach() local
299 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_need_dqattach()
301 if (!XFS_NOT_DQATTACHED(mp, ip)) in xfs_qm_need_dqattach()
303 if (xfs_is_quota_inode(&mp->m_sb, ip->i_ino)) in xfs_qm_need_dqattach()
320 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() local
328 if (XFS_IS_UQUOTA_ON(mp) && !ip->i_udquot) { in xfs_qm_dqattach_locked()
336 if (XFS_IS_GQUOTA_ON(mp) && !ip->i_gdquot) { in xfs_qm_dqattach_locked()
344 if (XFS_IS_PQUOTA_ON(mp) && !ip->i_pdquot) { in xfs_qm_dqattach_locked()
549 struct xfs_mount *mp, in xfs_qm_set_defquota() argument
557 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); in xfs_qm_set_defquota()
579 struct xfs_mount *mp, in xfs_qm_init_timelimits() argument
582 struct xfs_quotainfo *qinf = mp->m_quotainfo; in xfs_qm_init_timelimits()
600 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); in xfs_qm_init_timelimits()
625 struct xfs_mount *mp) in xfs_qm_init_quotainfo() argument
630 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_init_quotainfo()
632 qinf = mp->m_quotainfo = kzalloc(sizeof(struct xfs_quotainfo), in xfs_qm_init_quotainfo()
643 error = xfs_qm_init_quotainos(mp); in xfs_qm_init_quotainfo()
656 qinf->qi_dqchunklen = XFS_FSB_TO_BB(mp, XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_qm_init_quotainfo()
658 if (xfs_has_bigtime(mp)) { in xfs_qm_init_quotainfo()
667 trace_xfs_quota_expiry_range(mp, qinf->qi_expiry_min, in xfs_qm_init_quotainfo()
670 mp->m_qflags |= (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_CHKD); in xfs_qm_init_quotainfo()
672 xfs_qm_init_timelimits(mp, XFS_DQTYPE_USER); in xfs_qm_init_quotainfo()
673 xfs_qm_init_timelimits(mp, XFS_DQTYPE_GROUP); in xfs_qm_init_quotainfo()
674 xfs_qm_init_timelimits(mp, XFS_DQTYPE_PROJ); in xfs_qm_init_quotainfo()
676 if (XFS_IS_UQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
677 xfs_qm_set_defquota(mp, XFS_DQTYPE_USER, qinf); in xfs_qm_init_quotainfo()
678 if (XFS_IS_GQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
679 xfs_qm_set_defquota(mp, XFS_DQTYPE_GROUP, qinf); in xfs_qm_init_quotainfo()
680 if (XFS_IS_PQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
681 xfs_qm_set_defquota(mp, XFS_DQTYPE_PROJ, qinf); in xfs_qm_init_quotainfo()
684 mp->m_super->s_id); in xfs_qm_init_quotainfo()
709 mp->m_quotainfo = NULL; in xfs_qm_init_quotainfo()
720 struct xfs_mount *mp) in xfs_qm_destroy_quotainfo() argument
724 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
733 mp->m_quotainfo = NULL; in xfs_qm_destroy_quotainfo()
742 struct xfs_mount *mp, in xfs_qm_qino_alloc() argument
758 if (!xfs_has_pquotino(mp) && in xfs_qm_qino_alloc()
763 (mp->m_sb.sb_gquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
764 ino = mp->m_sb.sb_gquotino; in xfs_qm_qino_alloc()
765 if (XFS_IS_CORRUPT(mp, in xfs_qm_qino_alloc()
766 mp->m_sb.sb_pquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
767 xfs_fs_mark_sick(mp, XFS_SICK_FS_PQUOTA); in xfs_qm_qino_alloc()
771 (mp->m_sb.sb_pquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
772 ino = mp->m_sb.sb_pquotino; in xfs_qm_qino_alloc()
773 if (XFS_IS_CORRUPT(mp, in xfs_qm_qino_alloc()
774 mp->m_sb.sb_gquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
775 xfs_fs_mark_sick(mp, XFS_SICK_FS_GQUOTA); in xfs_qm_qino_alloc()
780 error = xfs_iget(mp, NULL, ino, 0, 0, ipp); in xfs_qm_qino_alloc()
783 mp->m_sb.sb_gquotino = NULLFSINO; in xfs_qm_qino_alloc()
784 mp->m_sb.sb_pquotino = NULLFSINO; in xfs_qm_qino_alloc()
789 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_create, in xfs_qm_qino_alloc()
790 need_alloc ? XFS_QM_QINOCREATE_SPACE_RES(mp) : 0, in xfs_qm_qino_alloc()
816 spin_lock(&mp->m_sb_lock); in xfs_qm_qino_alloc()
818 ASSERT(!xfs_has_quota(mp)); in xfs_qm_qino_alloc()
820 xfs_add_quota(mp); in xfs_qm_qino_alloc()
821 mp->m_sb.sb_uquotino = NULLFSINO; in xfs_qm_qino_alloc()
822 mp->m_sb.sb_gquotino = NULLFSINO; in xfs_qm_qino_alloc()
823 mp->m_sb.sb_pquotino = NULLFSINO; in xfs_qm_qino_alloc()
826 mp->m_sb.sb_qflags = mp->m_qflags & XFS_ALL_QUOTA_ACCT; in xfs_qm_qino_alloc()
829 mp->m_sb.sb_uquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
831 mp->m_sb.sb_gquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
833 mp->m_sb.sb_pquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
834 spin_unlock(&mp->m_sb_lock); in xfs_qm_qino_alloc()
839 ASSERT(xfs_is_shutdown(mp)); in xfs_qm_qino_alloc()
840 xfs_alert(mp, "%s failed (error %d)!", __func__, error); in xfs_qm_qino_alloc()
852 struct xfs_mount *mp, in xfs_qm_reset_dqcounts() argument
867 j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) / in xfs_qm_reset_dqcounts()
869 ASSERT(mp->m_quotainfo->qi_dqperchunk == j); in xfs_qm_reset_dqcounts()
872 for (j = 0; j < mp->m_quotainfo->qi_dqperchunk; j++) { in xfs_qm_reset_dqcounts()
883 if (xfs_dqblk_verify(mp, &dqb[j], id + j) || in xfs_qm_reset_dqcounts()
885 xfs_dqblk_repair(mp, &dqb[j], id + j, type); in xfs_qm_reset_dqcounts()
908 if (xfs_has_bigtime(mp)) in xfs_qm_reset_dqcounts()
912 if (xfs_has_crc(mp)) { in xfs_qm_reset_dqcounts()
922 struct xfs_mount *mp, in xfs_qm_reset_dqcounts_all() argument
944 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_reset_dqcounts_all()
945 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_reset_dqcounts_all()
946 mp->m_quotainfo->qi_dqchunklen, 0, &bp, in xfs_qm_reset_dqcounts_all()
957 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_reset_dqcounts_all()
958 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_reset_dqcounts_all()
959 mp->m_quotainfo->qi_dqchunklen, 0, &bp, in xfs_qm_reset_dqcounts_all()
972 xfs_qm_reset_dqcounts(mp, bp, firstid, type); in xfs_qm_reset_dqcounts_all()
978 firstid += mp->m_quotainfo->qi_dqperchunk; in xfs_qm_reset_dqcounts_all()
990 struct xfs_mount *mp, in xfs_qm_reset_dqcounts_buf() argument
1017 maxlblkcnt = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes); in xfs_qm_reset_dqcounts_buf()
1046 mp->m_quotainfo->qi_dqperchunk; in xfs_qm_reset_dqcounts_buf()
1055 xfs_buf_readahead(mp->m_ddev_targp, in xfs_qm_reset_dqcounts_buf()
1056 XFS_FSB_TO_DADDR(mp, rablkno), in xfs_qm_reset_dqcounts_buf()
1057 mp->m_quotainfo->qi_dqchunklen, in xfs_qm_reset_dqcounts_buf()
1066 error = xfs_qm_reset_dqcounts_all(mp, firstid, in xfs_qm_reset_dqcounts_buf()
1095 struct xfs_mount *mp = ip->i_mount; in xfs_qm_quotacheck_dqadjust() local
1101 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_quotacheck_dqadjust()
1150 struct xfs_mount *mp, in xfs_qm_dqusage_adjust() argument
1160 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_dqusage_adjust()
1166 if (xfs_is_quota_inode(&mp->m_sb, ino)) in xfs_qm_dqusage_adjust()
1173 error = xfs_iget(mp, tp, ino, XFS_IGET_DONTCACHE, 0, &ip); in xfs_qm_dqusage_adjust()
1187 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE); in xfs_qm_dqusage_adjust()
1219 if (XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1226 if (XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1233 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1250 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_flush_one() local
1271 error = xfs_buf_incore(mp->m_ddev_targp, dqp->q_blkno, in xfs_qm_flush_one()
1272 mp->m_quotainfo->qi_dqchunklen, 0, &bp); in xfs_qm_flush_one()
1307 xfs_mount_t *mp) in xfs_qm_quotacheck() argument
1312 struct xfs_inode *uip = mp->m_quotainfo->qi_uquotaip; in xfs_qm_quotacheck()
1313 struct xfs_inode *gip = mp->m_quotainfo->qi_gquotaip; in xfs_qm_quotacheck()
1314 struct xfs_inode *pip = mp->m_quotainfo->qi_pquotaip; in xfs_qm_quotacheck()
1319 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_quotacheck()
1321 xfs_notice(mp, "Quotacheck needed: Please wait."); in xfs_qm_quotacheck()
1329 error = xfs_qm_reset_dqcounts_buf(mp, uip, XFS_DQTYPE_USER, in xfs_qm_quotacheck()
1337 error = xfs_qm_reset_dqcounts_buf(mp, gip, XFS_DQTYPE_GROUP, in xfs_qm_quotacheck()
1345 error = xfs_qm_reset_dqcounts_buf(mp, pip, XFS_DQTYPE_PROJ, in xfs_qm_quotacheck()
1352 xfs_set_quotacheck_running(mp); in xfs_qm_quotacheck()
1353 error = xfs_iwalk_threaded(mp, 0, 0, xfs_qm_dqusage_adjust, 0, true, in xfs_qm_quotacheck()
1355 xfs_clear_quotacheck_running(mp); in xfs_qm_quotacheck()
1369 if (XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1370 error = xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_flush_one, in xfs_qm_quotacheck()
1373 if (XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1374 error2 = xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_flush_one, in xfs_qm_quotacheck()
1379 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1380 error2 = xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_flush_one, in xfs_qm_quotacheck()
1405 mp->m_qflags &= ~XFS_ALL_QUOTA_CHKD; in xfs_qm_quotacheck()
1406 mp->m_qflags |= flags; in xfs_qm_quotacheck()
1412 xfs_warn(mp, in xfs_qm_quotacheck()
1418 ASSERT(mp->m_quotainfo != NULL); in xfs_qm_quotacheck()
1419 xfs_qm_destroy_quotainfo(mp); in xfs_qm_quotacheck()
1420 if (xfs_mount_reset_sbqflags(mp)) { in xfs_qm_quotacheck()
1421 xfs_warn(mp, in xfs_qm_quotacheck()
1424 xfs_fs_mark_sick(mp, XFS_SICK_FS_QUOTACHECK); in xfs_qm_quotacheck()
1426 xfs_notice(mp, "Quotacheck: Done."); in xfs_qm_quotacheck()
1427 xfs_fs_mark_healthy(mp, XFS_SICK_FS_QUOTACHECK); in xfs_qm_quotacheck()
1437 * below that frees mp->m_quotainfo. To avoid this race, flush all the in xfs_qm_quotacheck()
1442 xfs_inodegc_flush(mp); in xfs_qm_quotacheck()
1443 xfs_qm_dqpurge_all(mp); in xfs_qm_quotacheck()
1459 struct xfs_mount *mp) in xfs_qm_mount_quotas() argument
1468 if (mp->m_sb.sb_rextents) { in xfs_qm_mount_quotas()
1469 xfs_notice(mp, "Cannot turn on quotas for realtime filesystem"); in xfs_qm_mount_quotas()
1470 mp->m_qflags = 0; in xfs_qm_mount_quotas()
1474 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_mount_quotas()
1480 error = xfs_qm_init_quotainfo(mp); in xfs_qm_mount_quotas()
1485 ASSERT(mp->m_quotainfo == NULL); in xfs_qm_mount_quotas()
1486 mp->m_qflags = 0; in xfs_qm_mount_quotas()
1492 if (XFS_QM_NEED_QUOTACHECK(mp)) { in xfs_qm_mount_quotas()
1493 error = xfs_qm_quotacheck(mp); in xfs_qm_mount_quotas()
1504 if (!XFS_IS_UQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1505 mp->m_qflags &= ~XFS_UQUOTA_CHKD; in xfs_qm_mount_quotas()
1506 if (!XFS_IS_GQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1507 mp->m_qflags &= ~XFS_GQUOTA_CHKD; in xfs_qm_mount_quotas()
1508 if (!XFS_IS_PQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1509 mp->m_qflags &= ~XFS_PQUOTA_CHKD; in xfs_qm_mount_quotas()
1516 spin_lock(&mp->m_sb_lock); in xfs_qm_mount_quotas()
1517 sbf = mp->m_sb.sb_qflags; in xfs_qm_mount_quotas()
1518 mp->m_sb.sb_qflags = mp->m_qflags & XFS_MOUNT_QUOTA_ALL; in xfs_qm_mount_quotas()
1519 spin_unlock(&mp->m_sb_lock); in xfs_qm_mount_quotas()
1521 if (sbf != (mp->m_qflags & XFS_MOUNT_QUOTA_ALL)) { in xfs_qm_mount_quotas()
1522 if (xfs_sync_sb(mp, false)) { in xfs_qm_mount_quotas()
1529 ASSERT(!(XFS_IS_QUOTA_ON(mp))); in xfs_qm_mount_quotas()
1530 xfs_alert(mp, "%s: Superblock update failed!", in xfs_qm_mount_quotas()
1536 xfs_warn(mp, "Failed to initialize disk quotas."); in xfs_qm_mount_quotas()
1551 struct xfs_mount *mp, in xfs_qm_qino_load() argument
1559 ino = mp->m_sb.sb_uquotino; in xfs_qm_qino_load()
1562 ino = mp->m_sb.sb_gquotino; in xfs_qm_qino_load()
1565 ino = mp->m_sb.sb_pquotino; in xfs_qm_qino_load()
1575 return xfs_iget(mp, NULL, ino, 0, 0, ipp); in xfs_qm_qino_load()
1584 xfs_mount_t *mp) in xfs_qm_init_quotainos() argument
1592 ASSERT(mp->m_quotainfo); in xfs_qm_init_quotainos()
1597 if (xfs_has_quota(mp)) { in xfs_qm_init_quotainos()
1598 if (XFS_IS_UQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1599 mp->m_sb.sb_uquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1600 ASSERT(mp->m_sb.sb_uquotino > 0); in xfs_qm_init_quotainos()
1601 error = xfs_qm_qino_load(mp, XFS_DQTYPE_USER, &uip); in xfs_qm_init_quotainos()
1605 if (XFS_IS_GQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1606 mp->m_sb.sb_gquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1607 ASSERT(mp->m_sb.sb_gquotino > 0); in xfs_qm_init_quotainos()
1608 error = xfs_qm_qino_load(mp, XFS_DQTYPE_GROUP, &gip); in xfs_qm_init_quotainos()
1612 if (XFS_IS_PQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1613 mp->m_sb.sb_pquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1614 ASSERT(mp->m_sb.sb_pquotino > 0); in xfs_qm_init_quotainos()
1615 error = xfs_qm_qino_load(mp, XFS_DQTYPE_PROJ, &pip); in xfs_qm_init_quotainos()
1629 if (XFS_IS_UQUOTA_ON(mp) && uip == NULL) { in xfs_qm_init_quotainos()
1630 error = xfs_qm_qino_alloc(mp, &uip, in xfs_qm_init_quotainos()
1637 if (XFS_IS_GQUOTA_ON(mp) && gip == NULL) { in xfs_qm_init_quotainos()
1638 error = xfs_qm_qino_alloc(mp, &gip, in xfs_qm_init_quotainos()
1645 if (XFS_IS_PQUOTA_ON(mp) && pip == NULL) { in xfs_qm_init_quotainos()
1646 error = xfs_qm_qino_alloc(mp, &pip, in xfs_qm_init_quotainos()
1652 mp->m_quotainfo->qi_uquotaip = uip; in xfs_qm_init_quotainos()
1653 mp->m_quotainfo->qi_gquotaip = gip; in xfs_qm_init_quotainos()
1654 mp->m_quotainfo->qi_pquotaip = pip; in xfs_qm_init_quotainos()
1690 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqfree_one() local
1691 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one()
1726 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_dqalloc() local
1735 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_dqalloc()
1748 if (XFS_NOT_DQATTACHED(mp, ip)) { in xfs_qm_vop_dqalloc()
1756 if ((flags & XFS_QMOPT_UQUOTA) && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
1769 error = xfs_qm_dqget(mp, from_kuid(user_ns, uid), in xfs_qm_vop_dqalloc()
1790 if ((flags & XFS_QMOPT_GQUOTA) && XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
1794 error = xfs_qm_dqget(mp, from_kgid(user_ns, gid), in xfs_qm_vop_dqalloc()
1808 if ((flags & XFS_QMOPT_PQUOTA) && XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
1812 error = xfs_qm_dqget(mp, prid, in xfs_qm_vop_dqalloc()
1916 struct xfs_mount *mp = i_tab[0]->i_mount; in xfs_qm_vop_rename_dqattach() local
1919 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_rename_dqattach()
1930 if (XFS_NOT_DQATTACHED(mp, ip)) { in xfs_qm_vop_rename_dqattach()
1948 struct xfs_mount *mp = tp->t_mountp; in xfs_qm_vop_create_dqattach() local
1950 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_create_dqattach()
1955 if (udqp && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()
1961 if (gdqp && XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()
1967 if (pdqp && XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()