Lines Matching refs:object

51 	uint64_t object;  in dmu_object_alloc_impl()  local
96 object = *cpuobj; in dmu_object_alloc_impl()
102 if ((P2PHASE(object, dnodes_per_chunk) == 0) || in dmu_object_alloc_impl()
103 (P2PHASE(object + dn_slots - 1, dnodes_per_chunk) < in dmu_object_alloc_impl()
109 object = os->os_obj_next_chunk; in dmu_object_alloc_impl()
138 if (P2PHASE(object, L1_dnode_count) == 0) { in dmu_object_alloc_impl()
146 offset = object << DNODE_SHIFT; in dmu_object_alloc_impl()
155 object = offset >> DNODE_SHIFT; in dmu_object_alloc_impl()
163 P2ALIGN(object, dnodes_per_chunk) + in dmu_object_alloc_impl()
165 (void) atomic_swap_64(cpuobj, object); in dmu_object_alloc_impl()
174 object = atomic_add_64_nv(cpuobj, dn_slots) - dn_slots; in dmu_object_alloc_impl()
182 error = dnode_hold_impl(os, object, DNODE_MUST_BE_FREE, in dmu_object_alloc_impl()
206 return (object); in dmu_object_alloc_impl()
217 if (dmu_object_next(os, &object, B_TRUE, 0) != 0) { in dmu_object_alloc_impl()
218 object = P2ROUNDUP(object + 1, DNODES_PER_BLOCK); in dmu_object_alloc_impl()
221 (void) atomic_swap_64(cpuobj, object); in dmu_object_alloc_impl()
265 dmu_object_claim(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_claim() argument
268 return (dmu_object_claim_dnsize(os, object, ot, blocksize, bonustype, in dmu_object_claim()
273 dmu_object_claim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_claim_dnsize() argument
286 if (object == DMU_META_DNODE_OBJECT && !dmu_tx_private_ok(tx)) in dmu_object_claim_dnsize()
289 err = dnode_hold_impl(os, object, DNODE_MUST_BE_FREE, dn_slots, in dmu_object_claim_dnsize()
303 dmu_object_reclaim(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_reclaim() argument
306 return (dmu_object_reclaim_dnsize(os, object, ot, blocksize, bonustype, in dmu_object_reclaim()
311 dmu_object_reclaim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_reclaim_dnsize() argument
322 if (object == DMU_META_DNODE_OBJECT) in dmu_object_reclaim_dnsize()
325 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_reclaim_dnsize()
338 dmu_object_rm_spill(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_rm_spill() argument
343 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_rm_spill()
360 dmu_object_free(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_free() argument
365 ASSERT(object != DMU_META_DNODE_OBJECT || dmu_tx_private_ok(tx)); in dmu_object_free()
367 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_free()
458 dmu_object_zapify(objset_t *mos, uint64_t object, dmu_object_type_t old_type, in dmu_object_zapify() argument
465 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); in dmu_object_zapify()
490 dmu_object_free_zapified(objset_t *mos, uint64_t object, dmu_tx_t *tx) in dmu_object_free_zapified() argument
497 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); in dmu_object_free_zapified()
505 VERIFY0(dmu_object_free(mos, object, tx)); in dmu_object_free_zapified()