• Home
  • Raw
  • Download

Lines Matching refs:qi

35 STATIC void	xfs_qm_destroy_quotainos(xfs_quotainfo_t *qi);
53 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() local
54 struct radix_tree_root *tree = xfs_dquot_tree(qi, type); in xfs_qm_dquot_walk()
70 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
74 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
92 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
122 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge() local
162 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqpurge()
164 qi->qi_dquots--; in xfs_qm_dqpurge()
171 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()
714 xfs_quotainfo_t *qi; in xfs_qm_destroy_quotainfo() local
716 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
717 ASSERT(qi != NULL); in xfs_qm_destroy_quotainfo()
719 unregister_shrinker(&qi->qi_shrinker); in xfs_qm_destroy_quotainfo()
720 list_lru_destroy(&qi->qi_lru); in xfs_qm_destroy_quotainfo()
721 xfs_qm_destroy_quotainos(qi); in xfs_qm_destroy_quotainfo()
722 mutex_destroy(&qi->qi_tree_lock); in xfs_qm_destroy_quotainfo()
723 mutex_destroy(&qi->qi_quotaofflock); in xfs_qm_destroy_quotainfo()
724 kmem_free(qi); in xfs_qm_destroy_quotainfo()
1562 xfs_quotainfo_t *qi) in xfs_qm_destroy_quotainos() argument
1564 if (qi->qi_uquotaip) { in xfs_qm_destroy_quotainos()
1565 xfs_irele(qi->qi_uquotaip); in xfs_qm_destroy_quotainos()
1566 qi->qi_uquotaip = NULL; /* paranoia */ in xfs_qm_destroy_quotainos()
1568 if (qi->qi_gquotaip) { in xfs_qm_destroy_quotainos()
1569 xfs_irele(qi->qi_gquotaip); in xfs_qm_destroy_quotainos()
1570 qi->qi_gquotaip = NULL; in xfs_qm_destroy_quotainos()
1572 if (qi->qi_pquotaip) { in xfs_qm_destroy_quotainos()
1573 xfs_irele(qi->qi_pquotaip); in xfs_qm_destroy_quotainos()
1574 qi->qi_pquotaip = NULL; in xfs_qm_destroy_quotainos()
1583 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one() local
1585 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()
1586 radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), in xfs_qm_dqfree_one()
1589 qi->qi_dquots--; in xfs_qm_dqfree_one()
1590 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()