• Home
  • Raw
  • Download

Lines Matching refs:ruip

32 	struct xfs_rui_log_item	*ruip)  in xfs_rui_item_free()  argument
34 if (ruip->rui_format.rui_nextents > XFS_RUI_MAX_FAST_EXTENTS) in xfs_rui_item_free()
35 kmem_free(ruip); in xfs_rui_item_free()
37 kmem_zone_free(xfs_rui_zone, ruip); in xfs_rui_item_free()
49 struct xfs_rui_log_item *ruip) in xfs_rui_release() argument
51 ASSERT(atomic_read(&ruip->rui_refcount) > 0); in xfs_rui_release()
52 if (atomic_dec_and_test(&ruip->rui_refcount)) { in xfs_rui_release()
53 xfs_trans_ail_remove(&ruip->rui_item, SHUTDOWN_LOG_IO_ERROR); in xfs_rui_release()
54 xfs_rui_item_free(ruip); in xfs_rui_release()
64 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_size() local
67 *nbytes += xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents); in xfs_rui_item_size()
82 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_format() local
85 ASSERT(atomic_read(&ruip->rui_next_extent) == in xfs_rui_item_format()
86 ruip->rui_format.rui_nextents); in xfs_rui_item_format()
88 ruip->rui_format.rui_type = XFS_LI_RUI; in xfs_rui_item_format()
89 ruip->rui_format.rui_size = 1; in xfs_rui_item_format()
91 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_RUI_FORMAT, &ruip->rui_format, in xfs_rui_item_format()
92 xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents)); in xfs_rui_item_format()
108 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_unpin() local
110 xfs_rui_release(ruip); in xfs_rui_item_unpin()
212 struct xfs_rui_log_item *ruip) in xfs_trans_get_rud() argument
219 rudp->rud_ruip = ruip; in xfs_trans_get_rud()
220 rudp->rud_format.rud_rui_id = ruip->rui_format.rui_id; in xfs_trans_get_rud()
326 struct xfs_rui_log_item *ruip, in xfs_rmap_update_log_item() argument
333 set_bit(XFS_LI_DIRTY, &ruip->rui_item.li_flags); in xfs_rmap_update_log_item()
340 next_extent = atomic_inc_return(&ruip->rui_next_extent) - 1; in xfs_rmap_update_log_item()
341 ASSERT(next_extent < ruip->rui_format.rui_nextents); in xfs_rmap_update_log_item()
342 map = &ruip->rui_format.rui_extents[next_extent]; in xfs_rmap_update_log_item()
359 struct xfs_rui_log_item *ruip = xfs_rui_init(mp, count); in xfs_rmap_update_create_intent() local
364 xfs_trans_add_item(tp, &ruip->rui_item); in xfs_rmap_update_create_intent()
368 xfs_rmap_update_log_item(tp, ruip, rmap); in xfs_rmap_update_create_intent()
369 return &ruip->rui_item; in xfs_rmap_update_create_intent()
453 struct xfs_rui_log_item *ruip, in xfs_rui_recover() argument
456 struct xfs_mount *mp = ruip->rui_item.li_mountp; in xfs_rui_recover()
469 ASSERT(!test_bit(XFS_RUI_RECOVERED, &ruip->rui_flags)); in xfs_rui_recover()
476 for (i = 0; i < ruip->rui_format.rui_nextents; i++) { in xfs_rui_recover()
477 rmap = &ruip->rui_format.rui_extents[i]; in xfs_rui_recover()
504 set_bit(XFS_RUI_RECOVERED, &ruip->rui_flags); in xfs_rui_recover()
505 xfs_rui_release(ruip); in xfs_rui_recover()
514 rudp = xfs_trans_get_rud(tp, ruip); in xfs_rui_recover()
516 for (i = 0; i < ruip->rui_format.rui_nextents; i++) { in xfs_rui_recover()
517 rmap = &ruip->rui_format.rui_extents[i]; in xfs_rui_recover()
562 set_bit(XFS_RUI_RECOVERED, &ruip->rui_flags); in xfs_rui_recover()
578 struct xfs_rui_log_item *ruip; in xfs_rui_item_relog() local
589 ruip = xfs_rui_init(tp->t_mountp, count); in xfs_rui_item_relog()
590 memcpy(ruip->rui_format.rui_extents, extp, count * sizeof(*extp)); in xfs_rui_item_relog()
591 atomic_set(&ruip->rui_next_extent, count); in xfs_rui_item_relog()
592 xfs_trans_add_item(tp, &ruip->rui_item); in xfs_rui_item_relog()
593 set_bit(XFS_LI_DIRTY, &ruip->rui_item.li_flags); in xfs_rui_item_relog()
594 return &ruip->rui_item; in xfs_rui_item_relog()
614 struct xfs_rui_log_item *ruip; in xfs_rui_init() local
618 ruip = kmem_zalloc(xfs_rui_log_item_sizeof(nextents), 0); in xfs_rui_init()
620 ruip = kmem_zone_zalloc(xfs_rui_zone, 0); in xfs_rui_init()
622 xfs_log_item_init(mp, &ruip->rui_item, XFS_LI_RUI, &xfs_rui_item_ops); in xfs_rui_init()
623 ruip->rui_format.rui_nextents = nextents; in xfs_rui_init()
624 ruip->rui_format.rui_id = (uintptr_t)(void *)ruip; in xfs_rui_init()
625 atomic_set(&ruip->rui_next_extent, 0); in xfs_rui_init()
626 atomic_set(&ruip->rui_refcount, 2); in xfs_rui_init()
628 return ruip; in xfs_rui_init()