Lines Matching defs:xfs_Gqm
52 struct xfs_qm *xfs_Gqm;
213 xfs_Gqm->qm_dqfrlist_cnt--;
237 * Need to lock the xfs_Gqm structure for things like this. For example,
243 if (!xfs_Gqm) {
244 xfs_Gqm = xfs_Gqm_init();
245 if (!xfs_Gqm) {
256 xfs_Gqm->qm_nrefs++;
274 ASSERT(xfs_Gqm);
275 ASSERT(xfs_Gqm->qm_nrefs > 0);
280 mutex_lock(&xfs_Gqm->qm_dqfrlist_lock);
282 list_for_each_entry_safe(dqp, n, &xfs_Gqm->qm_dqfrlist, q_freelist) {
290 xfs_Gqm->qm_dqfrlist_cnt--;
297 mutex_unlock(&xfs_Gqm->qm_dqfrlist_lock);
304 if (--xfs_Gqm->qm_nrefs == 0) {
305 xfs_qm_destroy(xfs_Gqm);
306 xfs_Gqm = NULL;
1146 ASSERT(xfs_Gqm != NULL);
1151 * that xfs_Gqm is non-null after this point.
1840 ASSERT(xfs_Gqm != NULL);
1948 mutex_lock(&xfs_Gqm->qm_dqfrlist_lock);
1950 list_for_each_entry(dqp, &xfs_Gqm->qm_dqfrlist, q_freelist) {
1966 mutex_unlock(&xfs_Gqm->qm_dqfrlist_lock);
1984 xfs_Gqm->qm_dqfrlist_cnt--;
2049 mutex_unlock(&xfs_Gqm->qm_dqfrlist_lock);
2062 xfs_Gqm->qm_dqfrlist_cnt--;
2074 mutex_unlock(&xfs_Gqm->qm_dqfrlist_lock);
2117 if (!xfs_Gqm)
2120 nfree = xfs_Gqm->qm_dqfrlist_cnt; /* free dquots */
2122 ndqused = atomic_read(&xfs_Gqm->qm_totaldquots) - nfree;
2129 ndqused *= xfs_Gqm->qm_dqfree_ratio; /* target # of free dquots */
2155 if (atomic_read(&xfs_Gqm->qm_totaldquots) >= ndquot) {
2172 ASSERT(xfs_Gqm->qm_dqzone != NULL);
2173 *O_dqpp = kmem_zone_zalloc(xfs_Gqm->qm_dqzone, KM_SLEEP);
2174 atomic_inc(&xfs_Gqm->qm_totaldquots);