Lines Matching full:ri
254 struct xfs_rmap_intent *ri) in xfs_rmap_update_log_item() argument
267 map->me_owner = ri->ri_owner; in xfs_rmap_update_log_item()
268 map->me_startblock = ri->ri_bmap.br_startblock; in xfs_rmap_update_log_item()
269 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item()
270 map->me_len = ri->ri_bmap.br_blockcount; in xfs_rmap_update_log_item()
273 if (ri->ri_bmap.br_state == XFS_EXT_UNWRITTEN) in xfs_rmap_update_log_item()
275 if (ri->ri_whichfork == XFS_ATTR_FORK) in xfs_rmap_update_log_item()
277 switch (ri->ri_type) { in xfs_rmap_update_log_item()
316 struct xfs_rmap_intent *ri; in xfs_rmap_update_create_intent() local
322 list_for_each_entry(ri, items, ri_list) in xfs_rmap_update_create_intent()
323 xfs_rmap_update_log_item(tp, ruip, ri); in xfs_rmap_update_create_intent()
350 struct xfs_rmap_intent *ri) in xfs_rmap_defer_add() argument
354 trace_xfs_rmap_defer(mp, ri); in xfs_rmap_defer_add()
356 ri->ri_pag = xfs_perag_intent_get(mp, ri->ri_bmap.br_startblock); in xfs_rmap_defer_add()
357 xfs_defer_add(tp, &ri->ri_list, &xfs_rmap_update_defer_type); in xfs_rmap_defer_add()
365 struct xfs_rmap_intent *ri = ri_entry(item); in xfs_rmap_update_cancel_item() local
367 xfs_perag_intent_put(ri->ri_pag); in xfs_rmap_update_cancel_item()
368 kmem_cache_free(xfs_rmap_intent_cache, ri); in xfs_rmap_update_cancel_item()
379 struct xfs_rmap_intent *ri = ri_entry(item); in xfs_rmap_update_finish_item() local
382 error = xfs_rmap_finish_one(tp, ri, state); in xfs_rmap_update_finish_item()
455 struct xfs_rmap_intent *ri; in xfs_rui_recover_work() local
457 ri = kmem_cache_alloc(xfs_rmap_intent_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_rui_recover_work()
461 ri->ri_type = XFS_RMAP_MAP; in xfs_rui_recover_work()
464 ri->ri_type = XFS_RMAP_MAP_SHARED; in xfs_rui_recover_work()
467 ri->ri_type = XFS_RMAP_UNMAP; in xfs_rui_recover_work()
470 ri->ri_type = XFS_RMAP_UNMAP_SHARED; in xfs_rui_recover_work()
473 ri->ri_type = XFS_RMAP_CONVERT; in xfs_rui_recover_work()
476 ri->ri_type = XFS_RMAP_CONVERT_SHARED; in xfs_rui_recover_work()
479 ri->ri_type = XFS_RMAP_ALLOC; in xfs_rui_recover_work()
482 ri->ri_type = XFS_RMAP_FREE; in xfs_rui_recover_work()
489 ri->ri_owner = map->me_owner; in xfs_rui_recover_work()
490 ri->ri_whichfork = (map->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ? in xfs_rui_recover_work()
492 ri->ri_bmap.br_startblock = map->me_startblock; in xfs_rui_recover_work()
493 ri->ri_bmap.br_startoff = map->me_startoff; in xfs_rui_recover_work()
494 ri->ri_bmap.br_blockcount = map->me_len; in xfs_rui_recover_work()
495 ri->ri_bmap.br_state = (map->me_flags & XFS_RMAP_EXTENT_UNWRITTEN) ? in xfs_rui_recover_work()
497 ri->ri_pag = xfs_perag_intent_get(mp, map->me_startblock); in xfs_rui_recover_work()
499 xfs_defer_add_item(dfp, &ri->ri_list); in xfs_rui_recover_work()