Lines Matching refs:ri

256 	struct xfs_refcount_intent	*ri,  in xfs_trans_log_finish_refcount_update()  argument
261 error = xfs_refcount_finish_one(tp, ri, pcur); in xfs_trans_log_finish_refcount_update()
316 struct xfs_refcount_intent *ri) in xfs_refcount_update_log_item() argument
332 pmap->pe_startblock = ri->ri_startblock; in xfs_refcount_update_log_item()
333 pmap->pe_len = ri->ri_blockcount; in xfs_refcount_update_log_item()
334 xfs_trans_set_refcount_flags(pmap, ri->ri_type); in xfs_refcount_update_log_item()
346 struct xfs_refcount_intent *ri; in xfs_refcount_update_create_intent() local
353 list_for_each_entry(ri, items, ri_list) in xfs_refcount_update_create_intent()
354 xfs_refcount_update_log_item(tp, cuip, ri); in xfs_refcount_update_create_intent()
372 struct xfs_refcount_intent *ri) in xfs_refcount_update_get_group() argument
376 agno = XFS_FSB_TO_AGNO(mp, ri->ri_startblock); in xfs_refcount_update_get_group()
377 ri->ri_pag = xfs_perag_intent_get(mp, agno); in xfs_refcount_update_get_group()
383 struct xfs_refcount_intent *ri) in xfs_refcount_update_put_group() argument
385 xfs_perag_intent_put(ri->ri_pag); in xfs_refcount_update_put_group()
396 struct xfs_refcount_intent *ri; in xfs_refcount_update_finish_item() local
399 ri = container_of(item, struct xfs_refcount_intent, ri_list); in xfs_refcount_update_finish_item()
400 error = xfs_trans_log_finish_refcount_update(tp, CUD_ITEM(done), ri, in xfs_refcount_update_finish_item()
404 if (!error && ri->ri_blockcount > 0) { in xfs_refcount_update_finish_item()
405 ASSERT(ri->ri_type == XFS_REFCOUNT_INCREASE || in xfs_refcount_update_finish_item()
406 ri->ri_type == XFS_REFCOUNT_DECREASE); in xfs_refcount_update_finish_item()
410 xfs_refcount_update_put_group(ri); in xfs_refcount_update_finish_item()
411 kmem_cache_free(xfs_refcount_intent_cache, ri); in xfs_refcount_update_finish_item()
428 struct xfs_refcount_intent *ri; in xfs_refcount_update_cancel_item() local
430 ri = container_of(item, struct xfs_refcount_intent, ri_list); in xfs_refcount_update_cancel_item()
432 xfs_refcount_update_put_group(ri); in xfs_refcount_update_cancel_item()
433 kmem_cache_free(xfs_refcount_intent_cache, ri); in xfs_refcount_update_cancel_item()