Lines Matching refs:qi
36 STATIC void xfs_qm_destroy_quotainos(xfs_quotainfo_t *qi);
54 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() local
55 struct radix_tree_root *tree = xfs_dquot_tree(qi, type); in xfs_qm_dquot_walk()
71 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
75 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
93 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
123 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge() local
164 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqpurge()
166 qi->qi_dquots--; in xfs_qm_dqpurge()
173 list_lru_del(&qi->qi_lru, &dqp->q_lru); in xfs_qm_dqpurge()
505 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_scan() local
517 freed = list_lru_shrink_walk(&qi->qi_lru, sc, in xfs_qm_shrink_scan()
540 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_count() local
543 return list_lru_shrink_count(&qi->qi_lru, sc); in xfs_qm_shrink_count()
720 xfs_quotainfo_t *qi; in xfs_qm_destroy_quotainfo() local
722 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
723 ASSERT(qi != NULL); in xfs_qm_destroy_quotainfo()
725 unregister_shrinker(&qi->qi_shrinker); in xfs_qm_destroy_quotainfo()
726 list_lru_destroy(&qi->qi_lru); in xfs_qm_destroy_quotainfo()
727 xfs_qm_destroy_quotainos(qi); in xfs_qm_destroy_quotainfo()
728 mutex_destroy(&qi->qi_tree_lock); in xfs_qm_destroy_quotainfo()
729 mutex_destroy(&qi->qi_quotaofflock); in xfs_qm_destroy_quotainfo()
730 kmem_free(qi); in xfs_qm_destroy_quotainfo()
1584 xfs_quotainfo_t *qi) in xfs_qm_destroy_quotainos() argument
1586 if (qi->qi_uquotaip) { in xfs_qm_destroy_quotainos()
1587 xfs_irele(qi->qi_uquotaip); in xfs_qm_destroy_quotainos()
1588 qi->qi_uquotaip = NULL; /* paranoia */ in xfs_qm_destroy_quotainos()
1590 if (qi->qi_gquotaip) { in xfs_qm_destroy_quotainos()
1591 xfs_irele(qi->qi_gquotaip); in xfs_qm_destroy_quotainos()
1592 qi->qi_gquotaip = NULL; in xfs_qm_destroy_quotainos()
1594 if (qi->qi_pquotaip) { in xfs_qm_destroy_quotainos()
1595 xfs_irele(qi->qi_pquotaip); in xfs_qm_destroy_quotainos()
1596 qi->qi_pquotaip = NULL; in xfs_qm_destroy_quotainos()
1605 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one() local
1607 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()
1608 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqfree_one()
1611 qi->qi_dquots--; in xfs_qm_dqfree_one()
1612 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()