• Home
  • Raw
  • Download

Lines Matching refs:qi

39 STATIC void	xfs_qm_destroy_quotainos(struct xfs_quotainfo *qi);
57 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() local
58 struct radix_tree_root *tree = xfs_dquot_tree(qi, type); in xfs_qm_dquot_walk()
74 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
78 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
96 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dquot_walk()
125 struct xfs_quotainfo *qi = dqp->q_mount->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()
708 struct xfs_quotainfo *qi; in xfs_qm_destroy_quotainfo() local
710 qi = mp->m_quotainfo; in xfs_qm_destroy_quotainfo()
711 ASSERT(qi != NULL); in xfs_qm_destroy_quotainfo()
713 unregister_shrinker(&qi->qi_shrinker); in xfs_qm_destroy_quotainfo()
714 list_lru_destroy(&qi->qi_lru); in xfs_qm_destroy_quotainfo()
715 xfs_qm_destroy_quotainos(qi); in xfs_qm_destroy_quotainfo()
716 mutex_destroy(&qi->qi_tree_lock); in xfs_qm_destroy_quotainfo()
717 mutex_destroy(&qi->qi_quotaofflock); in xfs_qm_destroy_quotainfo()
718 kmem_free(qi); in xfs_qm_destroy_quotainfo()
1580 struct xfs_quotainfo *qi) in xfs_qm_destroy_quotainos() argument
1582 if (qi->qi_uquotaip) { in xfs_qm_destroy_quotainos()
1583 xfs_irele(qi->qi_uquotaip); in xfs_qm_destroy_quotainos()
1584 qi->qi_uquotaip = NULL; /* paranoia */ in xfs_qm_destroy_quotainos()
1586 if (qi->qi_gquotaip) { in xfs_qm_destroy_quotainos()
1587 xfs_irele(qi->qi_gquotaip); in xfs_qm_destroy_quotainos()
1588 qi->qi_gquotaip = NULL; in xfs_qm_destroy_quotainos()
1590 if (qi->qi_pquotaip) { in xfs_qm_destroy_quotainos()
1591 xfs_irele(qi->qi_pquotaip); in xfs_qm_destroy_quotainos()
1592 qi->qi_pquotaip = NULL; in xfs_qm_destroy_quotainos()
1601 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqfree_one() local
1603 mutex_lock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()
1604 radix_tree_delete(xfs_dquot_tree(qi, xfs_dquot_type(dqp)), dqp->q_id); in xfs_qm_dqfree_one()
1606 qi->qi_dquots--; in xfs_qm_dqfree_one()
1607 mutex_unlock(&qi->qi_tree_lock); in xfs_qm_dqfree_one()