Lines Matching refs:qi
38 STATIC void xfs_qm_destroy_quotainos(struct xfs_quotainfo *qi);
56 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() local
57 struct radix_tree_root *tree = xfs_dquot_tree(qi, type); in xfs_qm_dquot_walk()
73 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
77 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
95 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
125 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge() local
166 radix_tree_delete(xfs_dquot_tree(qi, xfs_dquot_type(dqp)), dqp->q_id); in xfs_qm_dqpurge()
167 qi->qi_dquots--; in xfs_qm_dqpurge()
174 list_lru_del(&qi->qi_lru, &dqp->q_lru); in xfs_qm_dqpurge()
499 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_scan() local
511 freed = list_lru_shrink_walk(&qi->qi_lru, sc, in xfs_qm_shrink_scan()
534 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_count() local
537 return list_lru_shrink_count(&qi->qi_lru, sc); in xfs_qm_shrink_count()
716 struct xfs_quotainfo *qi; in xfs_qm_destroy_quotainfo() local
718 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
719 ASSERT(qi != NULL); in xfs_qm_destroy_quotainfo()
721 unregister_shrinker(&qi->qi_shrinker); in xfs_qm_destroy_quotainfo()
722 list_lru_destroy(&qi->qi_lru); in xfs_qm_destroy_quotainfo()
723 xfs_qm_destroy_quotainos(qi); in xfs_qm_destroy_quotainfo()
724 mutex_destroy(&qi->qi_tree_lock); in xfs_qm_destroy_quotainfo()
725 mutex_destroy(&qi->qi_quotaofflock); in xfs_qm_destroy_quotainfo()
726 kmem_free(qi); in xfs_qm_destroy_quotainfo()
1577 struct xfs_quotainfo *qi) in xfs_qm_destroy_quotainos() argument
1579 if (qi->qi_uquotaip) { in xfs_qm_destroy_quotainos()
1580 xfs_irele(qi->qi_uquotaip); in xfs_qm_destroy_quotainos()
1581 qi->qi_uquotaip = NULL; /* paranoia */ in xfs_qm_destroy_quotainos()
1583 if (qi->qi_gquotaip) { in xfs_qm_destroy_quotainos()
1584 xfs_irele(qi->qi_gquotaip); in xfs_qm_destroy_quotainos()
1585 qi->qi_gquotaip = NULL; in xfs_qm_destroy_quotainos()
1587 if (qi->qi_pquotaip) { in xfs_qm_destroy_quotainos()
1588 xfs_irele(qi->qi_pquotaip); in xfs_qm_destroy_quotainos()
1589 qi->qi_pquotaip = NULL; in xfs_qm_destroy_quotainos()
1598 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one() local
1600 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()
1601 radix_tree_delete(xfs_dquot_tree(qi, xfs_dquot_type(dqp)), dqp->q_id); in xfs_qm_dqfree_one()
1603 qi->qi_dquots--; in xfs_qm_dqfree_one()
1604 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()