Lines Matching refs:ruip

33 	struct xfs_rui_log_item	*ruip)  in xfs_rui_item_free()  argument
35 if (ruip->rui_format.rui_nextents > XFS_RUI_MAX_FAST_EXTENTS) in xfs_rui_item_free()
36 kmem_free(ruip); in xfs_rui_item_free()
38 kmem_zone_free(xfs_rui_zone, ruip); in xfs_rui_item_free()
50 struct xfs_rui_log_item *ruip) in xfs_rui_release() argument
52 ASSERT(atomic_read(&ruip->rui_refcount) > 0); in xfs_rui_release()
53 if (atomic_dec_and_test(&ruip->rui_refcount)) { in xfs_rui_release()
54 xfs_trans_ail_remove(&ruip->rui_item, SHUTDOWN_LOG_IO_ERROR); in xfs_rui_release()
55 xfs_rui_item_free(ruip); in xfs_rui_release()
65 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_size() local
68 *nbytes += xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents); in xfs_rui_item_size()
83 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_format() local
86 ASSERT(atomic_read(&ruip->rui_next_extent) == in xfs_rui_item_format()
87 ruip->rui_format.rui_nextents); in xfs_rui_item_format()
89 ruip->rui_format.rui_type = XFS_LI_RUI; in xfs_rui_item_format()
90 ruip->rui_format.rui_size = 1; in xfs_rui_item_format()
92 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_RUI_FORMAT, &ruip->rui_format, in xfs_rui_item_format()
93 xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents)); in xfs_rui_item_format()
118 struct xfs_rui_log_item *ruip = RUI_ITEM(lip); in xfs_rui_item_unpin() local
120 xfs_rui_release(ruip); in xfs_rui_item_unpin()
200 struct xfs_rui_log_item *ruip; in xfs_rui_init() local
204 ruip = kmem_zalloc(xfs_rui_log_item_sizeof(nextents), KM_SLEEP); in xfs_rui_init()
206 ruip = kmem_zone_zalloc(xfs_rui_zone, KM_SLEEP); in xfs_rui_init()
208 xfs_log_item_init(mp, &ruip->rui_item, XFS_LI_RUI, &xfs_rui_item_ops); in xfs_rui_init()
209 ruip->rui_format.rui_nextents = nextents; in xfs_rui_init()
210 ruip->rui_format.rui_id = (uintptr_t)(void *)ruip; in xfs_rui_init()
211 atomic_set(&ruip->rui_next_extent, 0); in xfs_rui_init()
212 atomic_set(&ruip->rui_refcount, 2); in xfs_rui_init()
214 return ruip; in xfs_rui_init()
385 struct xfs_rui_log_item *ruip) in xfs_rud_init() argument
392 rudp->rud_ruip = ruip; in xfs_rud_init()
393 rudp->rud_format.rud_rui_id = ruip->rui_format.rui_id; in xfs_rud_init()
405 struct xfs_rui_log_item *ruip) in xfs_rui_recover() argument
419 ASSERT(!test_bit(XFS_RUI_RECOVERED, &ruip->rui_flags)); in xfs_rui_recover()
426 for (i = 0; i < ruip->rui_format.rui_nextents; i++) { in xfs_rui_recover()
427 rmap = &ruip->rui_format.rui_extents[i]; in xfs_rui_recover()
454 set_bit(XFS_RUI_RECOVERED, &ruip->rui_flags); in xfs_rui_recover()
455 xfs_rui_release(ruip); in xfs_rui_recover()
464 rudp = xfs_trans_get_rud(tp, ruip); in xfs_rui_recover()
466 for (i = 0; i < ruip->rui_format.rui_nextents; i++) { in xfs_rui_recover()
467 rmap = &ruip->rui_format.rui_extents[i]; in xfs_rui_recover()
511 set_bit(XFS_RUI_RECOVERED, &ruip->rui_flags); in xfs_rui_recover()