Lines Matching refs:qi
68 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() local
69 struct radix_tree_root *tree = xfs_dquot_tree(qi, type); in xfs_qm_dquot_walk()
85 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
89 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
107 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
134 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge() local
177 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqpurge()
179 qi->qi_dquots--; in xfs_qm_dqpurge()
186 list_lru_del(&qi->qi_lru, &dqp->q_lru); in xfs_qm_dqpurge()
522 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_scan() local
534 freed = list_lru_shrink_walk(&qi->qi_lru, sc, in xfs_qm_shrink_scan()
557 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_count() local
560 return list_lru_shrink_count(&qi->qi_lru, sc); in xfs_qm_shrink_count()
684 xfs_quotainfo_t *qi; in xfs_qm_destroy_quotainfo() local
686 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
687 ASSERT(qi != NULL); in xfs_qm_destroy_quotainfo()
689 unregister_shrinker(&qi->qi_shrinker); in xfs_qm_destroy_quotainfo()
690 list_lru_destroy(&qi->qi_lru); in xfs_qm_destroy_quotainfo()
692 if (qi->qi_uquotaip) { in xfs_qm_destroy_quotainfo()
693 IRELE(qi->qi_uquotaip); in xfs_qm_destroy_quotainfo()
694 qi->qi_uquotaip = NULL; /* paranoia */ in xfs_qm_destroy_quotainfo()
696 if (qi->qi_gquotaip) { in xfs_qm_destroy_quotainfo()
697 IRELE(qi->qi_gquotaip); in xfs_qm_destroy_quotainfo()
698 qi->qi_gquotaip = NULL; in xfs_qm_destroy_quotainfo()
700 if (qi->qi_pquotaip) { in xfs_qm_destroy_quotainfo()
701 IRELE(qi->qi_pquotaip); in xfs_qm_destroy_quotainfo()
702 qi->qi_pquotaip = NULL; in xfs_qm_destroy_quotainfo()
704 mutex_destroy(&qi->qi_quotaofflock); in xfs_qm_destroy_quotainfo()
705 kmem_free(qi); in xfs_qm_destroy_quotainfo()
1575 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one() local
1577 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()
1578 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqfree_one()
1581 qi->qi_dquots--; in xfs_qm_dqfree_one()
1582 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()