Lines Matching refs:object

50 	uint64_t object;  in dmu_object_alloc_impl()  local
80 object = *cpuobj; in dmu_object_alloc_impl()
87 if ((P2PHASE(object, dnodes_per_chunk) == 0) || in dmu_object_alloc_impl()
88 (P2PHASE(object + dn_slots - 1, dnodes_per_chunk) < in dmu_object_alloc_impl()
94 object = os->os_obj_next_chunk; in dmu_object_alloc_impl()
123 if (P2PHASE(object, L1_dnode_count) == 0) { in dmu_object_alloc_impl()
131 offset = object << DNODE_SHIFT; in dmu_object_alloc_impl()
140 object = offset >> DNODE_SHIFT; in dmu_object_alloc_impl()
148 P2ALIGN(object, dnodes_per_chunk) + in dmu_object_alloc_impl()
150 (void) atomic_swap_64(cpuobj, object); in dmu_object_alloc_impl()
159 object = atomic_add_64_nv(cpuobj, dn_slots) - dn_slots; in dmu_object_alloc_impl()
167 error = dnode_hold_impl(os, object, DNODE_MUST_BE_FREE, in dmu_object_alloc_impl()
181 return (object); in dmu_object_alloc_impl()
192 if (dmu_object_next(os, &object, B_TRUE, 0) != 0) { in dmu_object_alloc_impl()
193 object = P2ROUNDUP(object + 1, DNODES_PER_BLOCK); in dmu_object_alloc_impl()
196 (void) atomic_swap_64(cpuobj, object); in dmu_object_alloc_impl()
226 dmu_object_claim(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_claim() argument
229 return (dmu_object_claim_dnsize(os, object, ot, blocksize, bonustype, in dmu_object_claim()
234 dmu_object_claim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_claim_dnsize() argument
247 if (object == DMU_META_DNODE_OBJECT && !dmu_tx_private_ok(tx)) in dmu_object_claim_dnsize()
250 err = dnode_hold_impl(os, object, DNODE_MUST_BE_FREE, dn_slots, in dmu_object_claim_dnsize()
263 dmu_object_reclaim(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_reclaim() argument
266 return (dmu_object_reclaim_dnsize(os, object, ot, blocksize, bonustype, in dmu_object_reclaim()
271 dmu_object_reclaim_dnsize(objset_t *os, uint64_t object, dmu_object_type_t ot, in dmu_object_reclaim_dnsize() argument
282 if (object == DMU_META_DNODE_OBJECT) in dmu_object_reclaim_dnsize()
285 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_reclaim_dnsize()
298 dmu_object_rm_spill(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_rm_spill() argument
303 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_rm_spill()
320 dmu_object_free(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_free() argument
325 ASSERT(object != DMU_META_DNODE_OBJECT || dmu_tx_private_ok(tx)); in dmu_object_free()
327 err = dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, in dmu_object_free()
415 dmu_object_zapify(objset_t *mos, uint64_t object, dmu_object_type_t old_type, in dmu_object_zapify() argument
422 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); in dmu_object_zapify()
435 mzap_create_impl(mos, object, 0, 0, tx); in dmu_object_zapify()
447 dmu_object_free_zapified(objset_t *mos, uint64_t object, dmu_tx_t *tx) in dmu_object_free_zapified() argument
454 VERIFY0(dnode_hold(mos, object, FTAG, &dn)); in dmu_object_free_zapified()
462 VERIFY0(dmu_object_free(mos, object, tx)); in dmu_object_free_zapified()