• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/xfs/quota/

Lines Matching refs:xfs_Gqm

60 struct xfs_qm	*xfs_Gqm;
215 * Need to lock the xfs_Gqm structure for things like this. For example,
219 XFS_QM_LOCK(xfs_Gqm);
221 if (xfs_Gqm == NULL)
222 xfs_Gqm = xfs_Gqm_init();
228 XFS_QM_HOLD(xfs_Gqm);
229 XFS_QM_UNLOCK(xfs_Gqm);
246 ASSERT(xfs_Gqm);
247 ASSERT(xfs_Gqm->qm_nrefs > 0);
252 xfs_qm_freelist_lock(xfs_Gqm);
254 for (dqp = xfs_Gqm->qm_dqfreelist.qh_next;
255 dqp != (xfs_dquot_t *)&(xfs_Gqm->qm_dqfreelist); ) {
271 xfs_qm_freelist_unlock(xfs_Gqm);
277 XFS_QM_LOCK(xfs_Gqm);
278 XFS_QM_RELE(xfs_Gqm);
279 if (xfs_Gqm->qm_nrefs == 0) {
280 xfs_qm_destroy(xfs_Gqm);
281 xfs_Gqm = NULL;
283 XFS_QM_UNLOCK(xfs_Gqm);
288 * structure and start the global quota manager (xfs_Gqm) if it hasn't done
1255 ASSERT(xfs_Gqm != NULL);
1260 * that xfs_Gqm is non-null after this point.
1957 ASSERT(xfs_Gqm != NULL);
2073 xfs_qm_freelist_lock(xfs_Gqm);
2075 for (dqp = xfs_Gqm->qm_dqfreelist.qh_next;
2076 ((dqp != (xfs_dquot_t *) &xfs_Gqm->qm_dqfreelist) &&
2086 xfs_qm_freelist_unlock(xfs_Gqm);
2160 xfs_qm_freelist_unlock(xfs_Gqm);
2186 xfs_qm_freelist_unlock(xfs_Gqm);
2202 if (!xfs_Gqm)
2205 nfree = xfs_Gqm->qm_dqfreelist.qh_nelems; /* free dquots */
2207 ndqused = atomic_read(&xfs_Gqm->qm_totaldquots) - nfree;
2214 ndqused *= xfs_Gqm->qm_dqfree_ratio; /* target # of free dquots */
2239 xfs_qm_freelist_lock(xfs_Gqm);
2241 FOREACH_DQUOT_IN_FREELIST(dqp, &(xfs_Gqm->qm_dqfreelist)) {
2254 xfs_qm_freelist_unlock(xfs_Gqm);
2331 xfs_qm_freelist_unlock(xfs_Gqm);
2355 if (atomic_read(&xfs_Gqm->qm_totaldquots) >= ndquot) {
2372 ASSERT(xfs_Gqm->qm_dqzone != NULL);
2373 *O_dqpp = kmem_zone_zalloc(xfs_Gqm->qm_dqzone, KM_SLEEP);
2374 atomic_inc(&xfs_Gqm->qm_totaldquots);
2799 xfs_Gqm->qm_dqfreelist.qh_nelems++;
2800 xfs_Gqm->qm_dqfreelist.qh_version++;
2812 xfs_Gqm->qm_dqfreelist.qh_nelems--;
2813 xfs_Gqm->qm_dqfreelist.qh_version++;