Lines Matching full:mp

40 STATIC int	xfs_qm_init_quotainos(struct xfs_mount *mp);
41 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
55 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
60 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
205 struct xfs_mount *mp) in xfs_qm_dqpurge_all() argument
207 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
208 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
209 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
217 struct xfs_mount *mp) in xfs_qm_unmount() argument
219 if (mp->m_quotainfo) { in xfs_qm_unmount()
220 xfs_qm_dqpurge_all(mp); in xfs_qm_unmount()
221 xfs_qm_destroy_quotainfo(mp); in xfs_qm_unmount()
227 struct xfs_mount *mp) in xfs_qm_unmount_rt() argument
229 struct xfs_rtgroup *rtg = xfs_rtgroup_grab(mp, 0); in xfs_qm_unmount_rt()
267 xfs_mount_t *mp) in xfs_qm_unmount_quotas() argument
273 ASSERT(mp->m_rootip); in xfs_qm_unmount_quotas()
274 xfs_qm_dqdetach(mp->m_rootip); in xfs_qm_unmount_quotas()
280 if (!xfs_has_rtgroups(mp)) in xfs_qm_unmount_quotas()
281 xfs_qm_unmount_rt(mp); in xfs_qm_unmount_quotas()
286 if (mp->m_quotainfo) in xfs_qm_unmount_quotas()
287 xfs_qm_destroy_quotainos(mp->m_quotainfo); in xfs_qm_unmount_quotas()
339 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach() local
341 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_need_dqattach()
343 if (!XFS_NOT_DQATTACHED(mp, ip)) in xfs_qm_need_dqattach()
345 if (xfs_is_quota_inode(&mp->m_sb, ip->i_ino)) in xfs_qm_need_dqattach()
364 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked() local
373 if (XFS_IS_UQUOTA_ON(mp) && !ip->i_udquot) { in xfs_qm_dqattach_locked()
381 if (XFS_IS_GQUOTA_ON(mp) && !ip->i_gdquot) { in xfs_qm_dqattach_locked()
389 if (XFS_IS_PQUOTA_ON(mp) && !ip->i_pdquot) { in xfs_qm_dqattach_locked()
606 struct xfs_mount *mp, in xfs_qm_set_defquota() argument
614 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); in xfs_qm_set_defquota()
636 struct xfs_mount *mp, in xfs_qm_init_timelimits() argument
639 struct xfs_quotainfo *qinf = mp->m_quotainfo; in xfs_qm_init_timelimits()
657 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); in xfs_qm_init_timelimits()
678 struct xfs_mount *mp, in xfs_qm_load_metadir_qinos() argument
684 error = xfs_trans_alloc_empty(mp, &tp); in xfs_qm_load_metadir_qinos()
697 if (XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_load_metadir_qinos()
704 if (XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_load_metadir_qinos()
711 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_load_metadir_qinos()
727 struct xfs_mount *mp, in xfs_qm_create_metadir_qinos() argument
733 error = xfs_dqinode_mkdir_parent(mp, &qi->qi_dirip); in xfs_qm_create_metadir_qinos()
741 if (XFS_IS_CORRUPT(mp, qi->qi_dirip == NULL)) in xfs_qm_create_metadir_qinos()
745 if (XFS_IS_UQUOTA_ON(mp) && !qi->qi_uquotaip) { in xfs_qm_create_metadir_qinos()
752 if (XFS_IS_GQUOTA_ON(mp) && !qi->qi_gquotaip) { in xfs_qm_create_metadir_qinos()
759 if (XFS_IS_PQUOTA_ON(mp) && !qi->qi_pquotaip) { in xfs_qm_create_metadir_qinos()
775 struct xfs_mount *mp) in xfs_qm_prep_metadir_sb() argument
780 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0, 0, &tp); in xfs_qm_prep_metadir_sb()
784 spin_lock(&mp->m_sb_lock); in xfs_qm_prep_metadir_sb()
786 xfs_add_quota(mp); in xfs_qm_prep_metadir_sb()
789 mp->m_sb.sb_qflags = mp->m_qflags & XFS_ALL_QUOTA_ACCT; in xfs_qm_prep_metadir_sb()
791 spin_unlock(&mp->m_sb_lock); in xfs_qm_prep_metadir_sb()
803 struct xfs_mount *mp) in xfs_qm_init_metadir_qinos() argument
805 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_init_metadir_qinos()
808 if (!xfs_has_quota(mp)) { in xfs_qm_init_metadir_qinos()
809 error = xfs_qm_prep_metadir_sb(mp); in xfs_qm_init_metadir_qinos()
814 error = xfs_qm_load_metadir_qinos(mp, qi); in xfs_qm_init_metadir_qinos()
818 error = xfs_qm_create_metadir_qinos(mp, qi); in xfs_qm_init_metadir_qinos()
829 xfs_qm_destroy_quotainos(mp->m_quotainfo); in xfs_qm_init_metadir_qinos()
839 struct xfs_mount *mp) in xfs_qm_init_quotainfo() argument
844 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_init_quotainfo()
846 qinf = mp->m_quotainfo = kzalloc(sizeof(struct xfs_quotainfo), in xfs_qm_init_quotainfo()
857 if (xfs_has_metadir(mp)) in xfs_qm_init_quotainfo()
858 error = xfs_qm_init_metadir_qinos(mp); in xfs_qm_init_quotainfo()
860 error = xfs_qm_init_quotainos(mp); in xfs_qm_init_quotainfo()
873 qinf->qi_dqchunklen = XFS_FSB_TO_BB(mp, XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_qm_init_quotainfo()
875 if (xfs_has_bigtime(mp)) { in xfs_qm_init_quotainfo()
884 trace_xfs_quota_expiry_range(mp, qinf->qi_expiry_min, in xfs_qm_init_quotainfo()
887 mp->m_qflags |= (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_CHKD); in xfs_qm_init_quotainfo()
889 xfs_qm_init_timelimits(mp, XFS_DQTYPE_USER); in xfs_qm_init_quotainfo()
890 xfs_qm_init_timelimits(mp, XFS_DQTYPE_GROUP); in xfs_qm_init_quotainfo()
891 xfs_qm_init_timelimits(mp, XFS_DQTYPE_PROJ); in xfs_qm_init_quotainfo()
893 if (XFS_IS_UQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
894 xfs_qm_set_defquota(mp, XFS_DQTYPE_USER, qinf); in xfs_qm_init_quotainfo()
895 if (XFS_IS_GQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
896 xfs_qm_set_defquota(mp, XFS_DQTYPE_GROUP, qinf); in xfs_qm_init_quotainfo()
897 if (XFS_IS_PQUOTA_ON(mp)) in xfs_qm_init_quotainfo()
898 xfs_qm_set_defquota(mp, XFS_DQTYPE_PROJ, qinf); in xfs_qm_init_quotainfo()
901 mp->m_super->s_id); in xfs_qm_init_quotainfo()
926 mp->m_quotainfo = NULL; in xfs_qm_init_quotainfo()
937 struct xfs_mount *mp) in xfs_qm_destroy_quotainfo() argument
941 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
950 mp->m_quotainfo = NULL; in xfs_qm_destroy_quotainfo()
970 struct xfs_mount *mp, in xfs_qm_qino_alloc() argument
987 if (!xfs_has_pquotino(mp) && in xfs_qm_qino_alloc()
992 (mp->m_sb.sb_gquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
993 ino = mp->m_sb.sb_gquotino; in xfs_qm_qino_alloc()
994 if (XFS_IS_CORRUPT(mp, in xfs_qm_qino_alloc()
995 mp->m_sb.sb_pquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
996 xfs_fs_mark_sick(mp, XFS_SICK_FS_PQUOTA); in xfs_qm_qino_alloc()
1000 (mp->m_sb.sb_pquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
1001 ino = mp->m_sb.sb_pquotino; in xfs_qm_qino_alloc()
1002 if (XFS_IS_CORRUPT(mp, in xfs_qm_qino_alloc()
1003 mp->m_sb.sb_gquotino != NULLFSINO)) { in xfs_qm_qino_alloc()
1004 xfs_fs_mark_sick(mp, XFS_SICK_FS_GQUOTA); in xfs_qm_qino_alloc()
1009 error = xfs_metafile_iget(mp, ino, metafile_type, ipp); in xfs_qm_qino_alloc()
1013 mp->m_sb.sb_gquotino = NULLFSINO; in xfs_qm_qino_alloc()
1014 mp->m_sb.sb_pquotino = NULLFSINO; in xfs_qm_qino_alloc()
1019 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_create, in xfs_qm_qino_alloc()
1020 need_alloc ? XFS_QM_QINOCREATE_SPACE_RES(mp) : 0, in xfs_qm_qino_alloc()
1039 if (xfs_has_metadir(mp)) in xfs_qm_qino_alloc()
1048 spin_lock(&mp->m_sb_lock); in xfs_qm_qino_alloc()
1050 ASSERT(!xfs_has_quota(mp)); in xfs_qm_qino_alloc()
1052 xfs_add_quota(mp); in xfs_qm_qino_alloc()
1053 mp->m_sb.sb_uquotino = NULLFSINO; in xfs_qm_qino_alloc()
1054 mp->m_sb.sb_gquotino = NULLFSINO; in xfs_qm_qino_alloc()
1055 mp->m_sb.sb_pquotino = NULLFSINO; in xfs_qm_qino_alloc()
1058 mp->m_sb.sb_qflags = mp->m_qflags & XFS_ALL_QUOTA_ACCT; in xfs_qm_qino_alloc()
1061 mp->m_sb.sb_uquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
1063 mp->m_sb.sb_gquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
1065 mp->m_sb.sb_pquotino = (*ipp)->i_ino; in xfs_qm_qino_alloc()
1066 spin_unlock(&mp->m_sb_lock); in xfs_qm_qino_alloc()
1071 ASSERT(xfs_is_shutdown(mp)); in xfs_qm_qino_alloc()
1072 xfs_alert(mp, "%s failed (error %d)!", __func__, error); in xfs_qm_qino_alloc()
1084 struct xfs_mount *mp, in xfs_qm_reset_dqcounts() argument
1099 j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) / in xfs_qm_reset_dqcounts()
1101 ASSERT(mp->m_quotainfo->qi_dqperchunk == j); in xfs_qm_reset_dqcounts()
1104 for (j = 0; j < mp->m_quotainfo->qi_dqperchunk; j++) { in xfs_qm_reset_dqcounts()
1115 if (xfs_dqblk_verify(mp, &dqb[j], id + j) || in xfs_qm_reset_dqcounts()
1117 xfs_dqblk_repair(mp, &dqb[j], id + j, type); in xfs_qm_reset_dqcounts()
1140 if (xfs_has_bigtime(mp)) in xfs_qm_reset_dqcounts()
1144 if (xfs_has_crc(mp)) { in xfs_qm_reset_dqcounts()
1154 struct xfs_mount *mp, in xfs_qm_reset_dqcounts_all() argument
1176 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_reset_dqcounts_all()
1177 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_reset_dqcounts_all()
1178 mp->m_quotainfo->qi_dqchunklen, 0, &bp, in xfs_qm_reset_dqcounts_all()
1189 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_reset_dqcounts_all()
1190 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_reset_dqcounts_all()
1191 mp->m_quotainfo->qi_dqchunklen, 0, &bp, in xfs_qm_reset_dqcounts_all()
1204 xfs_qm_reset_dqcounts(mp, bp, firstid, type); in xfs_qm_reset_dqcounts_all()
1210 firstid += mp->m_quotainfo->qi_dqperchunk; in xfs_qm_reset_dqcounts_all()
1222 struct xfs_mount *mp, in xfs_qm_reset_dqcounts_buf() argument
1249 maxlblkcnt = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes); in xfs_qm_reset_dqcounts_buf()
1278 mp->m_quotainfo->qi_dqperchunk; in xfs_qm_reset_dqcounts_buf()
1287 xfs_buf_readahead(mp->m_ddev_targp, in xfs_qm_reset_dqcounts_buf()
1288 XFS_FSB_TO_DADDR(mp, rablkno), in xfs_qm_reset_dqcounts_buf()
1289 mp->m_quotainfo->qi_dqchunklen, in xfs_qm_reset_dqcounts_buf()
1298 error = xfs_qm_reset_dqcounts_all(mp, firstid, in xfs_qm_reset_dqcounts_buf()
1327 struct xfs_mount *mp = ip->i_mount; in xfs_qm_quotacheck_dqadjust() local
1333 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_quotacheck_dqadjust()
1386 struct xfs_mount *mp, in xfs_qm_dqusage_adjust() argument
1396 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_dqusage_adjust()
1402 if (xfs_is_quota_inode(&mp->m_sb, ino)) in xfs_qm_dqusage_adjust()
1409 error = xfs_iget(mp, tp, ino, XFS_IGET_DONTCACHE, 0, &ip); in xfs_qm_dqusage_adjust()
1423 xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE); in xfs_qm_dqusage_adjust()
1458 if (XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1465 if (XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1472 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_dqusage_adjust()
1489 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_flush_one() local
1510 error = xfs_buf_incore(mp->m_ddev_targp, dqp->q_blkno, in xfs_qm_flush_one()
1511 mp->m_quotainfo->qi_dqchunklen, 0, &bp); in xfs_qm_flush_one()
1552 xfs_mount_t *mp) in xfs_qm_quotacheck() argument
1557 struct xfs_inode *uip = mp->m_quotainfo->qi_uquotaip; in xfs_qm_quotacheck()
1558 struct xfs_inode *gip = mp->m_quotainfo->qi_gquotaip; in xfs_qm_quotacheck()
1559 struct xfs_inode *pip = mp->m_quotainfo->qi_pquotaip; in xfs_qm_quotacheck()
1564 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_quotacheck()
1566 xfs_notice(mp, "Quotacheck needed: Please wait."); in xfs_qm_quotacheck()
1574 error = xfs_qm_reset_dqcounts_buf(mp, uip, XFS_DQTYPE_USER, in xfs_qm_quotacheck()
1582 error = xfs_qm_reset_dqcounts_buf(mp, gip, XFS_DQTYPE_GROUP, in xfs_qm_quotacheck()
1590 error = xfs_qm_reset_dqcounts_buf(mp, pip, XFS_DQTYPE_PROJ, in xfs_qm_quotacheck()
1597 xfs_set_quotacheck_running(mp); in xfs_qm_quotacheck()
1598 error = xfs_iwalk_threaded(mp, 0, 0, xfs_qm_dqusage_adjust, 0, true, in xfs_qm_quotacheck()
1600 xfs_clear_quotacheck_running(mp); in xfs_qm_quotacheck()
1614 if (XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1615 error = xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_flush_one, in xfs_qm_quotacheck()
1618 if (XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1619 error2 = xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_flush_one, in xfs_qm_quotacheck()
1624 if (XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_quotacheck()
1625 error2 = xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_flush_one, in xfs_qm_quotacheck()
1650 mp->m_qflags &= ~XFS_ALL_QUOTA_CHKD; in xfs_qm_quotacheck()
1651 mp->m_qflags |= flags; in xfs_qm_quotacheck()
1657 xfs_warn(mp, in xfs_qm_quotacheck()
1663 ASSERT(mp->m_quotainfo != NULL); in xfs_qm_quotacheck()
1664 xfs_qm_destroy_quotainfo(mp); in xfs_qm_quotacheck()
1665 if (xfs_mount_reset_sbqflags(mp)) { in xfs_qm_quotacheck()
1666 xfs_warn(mp, in xfs_qm_quotacheck()
1669 xfs_fs_mark_sick(mp, XFS_SICK_FS_QUOTACHECK); in xfs_qm_quotacheck()
1671 xfs_notice(mp, "Quotacheck: Done."); in xfs_qm_quotacheck()
1672 xfs_fs_mark_healthy(mp, XFS_SICK_FS_QUOTACHECK); in xfs_qm_quotacheck()
1682 * below that frees mp->m_quotainfo. To avoid this race, flush all the in xfs_qm_quotacheck()
1687 xfs_inodegc_flush(mp); in xfs_qm_quotacheck()
1688 xfs_qm_dqpurge_all(mp); in xfs_qm_quotacheck()
1704 struct xfs_mount *mp) in xfs_qm_mount_quotas() argument
1714 if (mp->m_sb.sb_rextents && !xfs_has_rtgroups(mp)) { in xfs_qm_mount_quotas()
1715 xfs_notice(mp, "Cannot turn on quotas for realtime filesystem"); in xfs_qm_mount_quotas()
1716 mp->m_qflags = 0; in xfs_qm_mount_quotas()
1720 ASSERT(XFS_IS_QUOTA_ON(mp)); in xfs_qm_mount_quotas()
1726 error = xfs_qm_init_quotainfo(mp); in xfs_qm_mount_quotas()
1731 ASSERT(mp->m_quotainfo == NULL); in xfs_qm_mount_quotas()
1732 mp->m_qflags = 0; in xfs_qm_mount_quotas()
1738 if (XFS_QM_NEED_QUOTACHECK(mp)) { in xfs_qm_mount_quotas()
1739 error = xfs_qm_quotacheck(mp); in xfs_qm_mount_quotas()
1750 if (!XFS_IS_UQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1751 mp->m_qflags &= ~XFS_UQUOTA_CHKD; in xfs_qm_mount_quotas()
1752 if (!XFS_IS_GQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1753 mp->m_qflags &= ~XFS_GQUOTA_CHKD; in xfs_qm_mount_quotas()
1754 if (!XFS_IS_PQUOTA_ON(mp)) in xfs_qm_mount_quotas()
1755 mp->m_qflags &= ~XFS_PQUOTA_CHKD; in xfs_qm_mount_quotas()
1762 spin_lock(&mp->m_sb_lock); in xfs_qm_mount_quotas()
1763 sbf = mp->m_sb.sb_qflags; in xfs_qm_mount_quotas()
1764 mp->m_sb.sb_qflags = mp->m_qflags & XFS_MOUNT_QUOTA_ALL; in xfs_qm_mount_quotas()
1765 spin_unlock(&mp->m_sb_lock); in xfs_qm_mount_quotas()
1767 if (sbf != (mp->m_qflags & XFS_MOUNT_QUOTA_ALL)) { in xfs_qm_mount_quotas()
1768 if (xfs_sync_sb(mp, false)) { in xfs_qm_mount_quotas()
1775 ASSERT(!(XFS_IS_QUOTA_ON(mp))); in xfs_qm_mount_quotas()
1776 xfs_alert(mp, "%s: Superblock update failed!", in xfs_qm_mount_quotas()
1782 xfs_warn(mp, "Failed to initialize disk quotas, err %d.", error); in xfs_qm_mount_quotas()
1797 struct xfs_mount *mp, in xfs_qm_qino_load() argument
1805 error = xfs_trans_alloc_empty(mp, &tp); in xfs_qm_qino_load()
1809 if (xfs_has_metadir(mp)) { in xfs_qm_qino_load()
1829 xfs_mount_t *mp) in xfs_qm_init_quotainos() argument
1837 ASSERT(mp->m_quotainfo); in xfs_qm_init_quotainos()
1842 if (xfs_has_quota(mp)) { in xfs_qm_init_quotainos()
1843 if (XFS_IS_UQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1844 mp->m_sb.sb_uquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1845 ASSERT(mp->m_sb.sb_uquotino > 0); in xfs_qm_init_quotainos()
1846 error = xfs_qm_qino_load(mp, XFS_DQTYPE_USER, &uip); in xfs_qm_init_quotainos()
1850 if (XFS_IS_GQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1851 mp->m_sb.sb_gquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1852 ASSERT(mp->m_sb.sb_gquotino > 0); in xfs_qm_init_quotainos()
1853 error = xfs_qm_qino_load(mp, XFS_DQTYPE_GROUP, &gip); in xfs_qm_init_quotainos()
1857 if (XFS_IS_PQUOTA_ON(mp) && in xfs_qm_init_quotainos()
1858 mp->m_sb.sb_pquotino != NULLFSINO) { in xfs_qm_init_quotainos()
1859 ASSERT(mp->m_sb.sb_pquotino > 0); in xfs_qm_init_quotainos()
1860 error = xfs_qm_qino_load(mp, XFS_DQTYPE_PROJ, &pip); in xfs_qm_init_quotainos()
1874 if (XFS_IS_UQUOTA_ON(mp) && uip == NULL) { in xfs_qm_init_quotainos()
1875 error = xfs_qm_qino_alloc(mp, &uip, in xfs_qm_init_quotainos()
1882 if (XFS_IS_GQUOTA_ON(mp) && gip == NULL) { in xfs_qm_init_quotainos()
1883 error = xfs_qm_qino_alloc(mp, &gip, in xfs_qm_init_quotainos()
1890 if (XFS_IS_PQUOTA_ON(mp) && pip == NULL) { in xfs_qm_init_quotainos()
1891 error = xfs_qm_qino_alloc(mp, &pip, in xfs_qm_init_quotainos()
1897 mp->m_quotainfo->qi_uquotaip = uip; in xfs_qm_init_quotainos()
1898 mp->m_quotainfo->qi_gquotaip = gip; in xfs_qm_init_quotainos()
1899 mp->m_quotainfo->qi_pquotaip = pip; in xfs_qm_init_quotainos()
1917 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqfree_one() local
1918 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one()
1953 struct xfs_mount *mp = ip->i_mount; in xfs_qm_vop_dqalloc() local
1962 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_dqalloc()
1977 if (XFS_NOT_DQATTACHED(mp, ip)) { in xfs_qm_vop_dqalloc()
1985 if ((flags & XFS_QMOPT_UQUOTA) && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
1998 error = xfs_qm_dqget(mp, from_kuid(user_ns, uid), in xfs_qm_vop_dqalloc()
2019 if ((flags & XFS_QMOPT_GQUOTA) && XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
2023 error = xfs_qm_dqget(mp, from_kgid(user_ns, gid), in xfs_qm_vop_dqalloc()
2037 if ((flags & XFS_QMOPT_PQUOTA) && XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_vop_dqalloc()
2041 error = xfs_qm_dqget(mp, prid, in xfs_qm_vop_dqalloc()
2157 struct xfs_mount *mp = i_tab[0]->i_mount; in xfs_qm_vop_rename_dqattach() local
2160 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_rename_dqattach()
2171 if (XFS_NOT_DQATTACHED(mp, ip)) { in xfs_qm_vop_rename_dqattach()
2189 struct xfs_mount *mp = tp->t_mountp; in xfs_qm_vop_create_dqattach() local
2191 if (!XFS_IS_QUOTA_ON(mp)) in xfs_qm_vop_create_dqattach()
2197 if (udqp && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()
2203 if (gdqp && XFS_IS_GQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()
2209 if (pdqp && XFS_IS_PQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach()