Lines Matching full:ri
255 struct xfs_refcount_intent *ri) in xfs_refcount_update_log_item() argument
268 pmap->pe_startblock = ri->ri_startblock; in xfs_refcount_update_log_item()
269 pmap->pe_len = ri->ri_blockcount; in xfs_refcount_update_log_item()
272 switch (ri->ri_type) { in xfs_refcount_update_log_item()
277 pmap->pe_flags |= ri->ri_type; in xfs_refcount_update_log_item()
293 struct xfs_refcount_intent *ri; in xfs_refcount_update_create_intent() local
299 list_for_each_entry(ri, items, ri_list) in xfs_refcount_update_create_intent()
300 xfs_refcount_update_log_item(tp, cuip, ri); in xfs_refcount_update_create_intent()
327 struct xfs_refcount_intent *ri) in xfs_refcount_defer_add() argument
331 trace_xfs_refcount_defer(mp, ri); in xfs_refcount_defer_add()
333 ri->ri_pag = xfs_perag_intent_get(mp, ri->ri_startblock); in xfs_refcount_defer_add()
334 xfs_defer_add(tp, &ri->ri_list, &xfs_refcount_update_defer_type); in xfs_refcount_defer_add()
342 struct xfs_refcount_intent *ri = ci_entry(item); in xfs_refcount_update_cancel_item() local
344 xfs_perag_intent_put(ri->ri_pag); in xfs_refcount_update_cancel_item()
345 kmem_cache_free(xfs_refcount_intent_cache, ri); in xfs_refcount_update_cancel_item()
356 struct xfs_refcount_intent *ri = ci_entry(item); in xfs_refcount_update_finish_item() local
360 error = xfs_refcount_finish_one(tp, ri, state); in xfs_refcount_update_finish_item()
361 if (!error && ri->ri_blockcount > 0) { in xfs_refcount_update_finish_item()
362 ASSERT(ri->ri_type == XFS_REFCOUNT_INCREASE || in xfs_refcount_update_finish_item()
363 ri->ri_type == XFS_REFCOUNT_DECREASE); in xfs_refcount_update_finish_item()
427 struct xfs_refcount_intent *ri; in xfs_cui_recover_work() local
429 ri = kmem_cache_alloc(xfs_refcount_intent_cache, in xfs_cui_recover_work()
431 ri->ri_type = pmap->pe_flags & XFS_REFCOUNT_EXTENT_TYPE_MASK; in xfs_cui_recover_work()
432 ri->ri_startblock = pmap->pe_startblock; in xfs_cui_recover_work()
433 ri->ri_blockcount = pmap->pe_len; in xfs_cui_recover_work()
434 ri->ri_pag = xfs_perag_intent_get(mp, pmap->pe_startblock); in xfs_cui_recover_work()
436 xfs_defer_add_item(dfp, &ri->ri_list); in xfs_cui_recover_work()