Lines Matching refs:ri
270 struct xfs_refcount_intent *ri)
283 pmap->pe_startblock = ri->ri_startblock;
284 pmap->pe_len = ri->ri_blockcount;
285 xfs_trans_set_refcount_flags(pmap, ri->ri_type);
297 struct xfs_refcount_intent *ri;
303 list_for_each_entry(ri, items, ri_list)
304 xfs_refcount_update_log_item(tp, cuip, ri);
331 struct xfs_refcount_intent *ri)
335 agno = XFS_FSB_TO_AGNO(mp, ri->ri_startblock);
336 ri->ri_pag = xfs_perag_intent_get(mp, agno);
342 struct xfs_refcount_intent *ri)
344 xfs_perag_intent_put(ri->ri_pag);
355 struct xfs_refcount_intent *ri;
358 ri = container_of(item, struct xfs_refcount_intent, ri_list);
361 error = xfs_refcount_finish_one(tp, ri, state);
362 if (!error && ri->ri_blockcount > 0) {
363 ASSERT(ri->ri_type == XFS_REFCOUNT_INCREASE ||
364 ri->ri_type == XFS_REFCOUNT_DECREASE);
368 xfs_refcount_update_put_group(ri);
369 kmem_cache_free(xfs_refcount_intent_cache, ri);
386 struct xfs_refcount_intent *ri;
388 ri = container_of(item, struct xfs_refcount_intent, ri_list);
390 xfs_refcount_update_put_group(ri);
391 kmem_cache_free(xfs_refcount_intent_cache, ri);
425 struct xfs_refcount_intent *ri;
427 ri = kmem_cache_alloc(xfs_refcount_intent_cache,
429 ri->ri_type = pmap->pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK;
430 ri->ri_startblock = pmap->pe_startblock;
431 ri->ri_blockcount = pmap->pe_len;
432 xfs_refcount_update_get_group(mp, ri);
434 xfs_defer_add_item(dfp, &ri->ri_list);