Lines Matching refs:tx
38 bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx) in bpobj_alloc_empty() argument
47 bpobj_alloc(os, SPA_OLD_MAXBLOCKSIZE, tx); in bpobj_alloc_empty()
51 &dp->dp_empty_bpobj, tx) == 0); in bpobj_alloc_empty()
53 spa_feature_incr(spa, SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_alloc_empty()
57 return (bpobj_alloc(os, blocksize, tx)); in bpobj_alloc_empty()
62 bpobj_decr_empty(objset_t *os, dmu_tx_t *tx) in bpobj_decr_empty() argument
66 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_decr_empty()
71 DMU_POOL_EMPTY_BPOBJ, tx)); in bpobj_decr_empty()
72 VERIFY3U(0, ==, dmu_object_free(os, dp->dp_empty_bpobj, tx)); in bpobj_decr_empty()
78 bpobj_alloc(objset_t *os, int blocksize, dmu_tx_t *tx) in bpobj_alloc() argument
90 DMU_OT_BPOBJ_HDR, size, tx)); in bpobj_alloc()
94 bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bpobj_free() argument
131 bpobj_free(os, objarray[blkoff], tx); in bpobj_free()
137 VERIFY3U(0, ==, dmu_object_free(os, bpo.bpo_phys->bpo_subobjs, tx)); in bpobj_free()
143 VERIFY3U(0, ==, dmu_object_free(os, obj, tx)); in bpobj_free()
204 bpobj_iterate_impl(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx, in bpobj_iterate_impl() argument
216 dmu_buf_will_dirty(bpo->bpo_dbuf, tx); in bpobj_iterate_impl()
240 err = func(arg, bp, tx); in bpobj_iterate_impl()
261 (i + 1) * sizeof (blkptr_t), -1ULL, tx)); in bpobj_iterate_impl()
309 err = bpobj_iterate_impl(&sublist, func, arg, tx, free); in bpobj_iterate_impl()
325 objarray[blkoff], tx); in bpobj_iterate_impl()
339 (i + 1) * sizeof (uint64_t), -1ULL, tx)); in bpobj_iterate_impl()
359 bpobj_iterate(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx) in bpobj_iterate() argument
361 return (bpobj_iterate_impl(bpo, func, arg, tx, B_TRUE)); in bpobj_iterate()
368 bpobj_iterate_nofree(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx) in bpobj_iterate_nofree() argument
370 return (bpobj_iterate_impl(bpo, func, arg, tx, B_FALSE)); in bpobj_iterate_nofree()
374 bpobj_enqueue_subobj(bpobj_t *bpo, uint64_t subobj, dmu_tx_t *tx) in bpobj_enqueue_subobj() argument
384 bpobj_decr_empty(bpo->bpo_os, tx); in bpobj_enqueue_subobj()
394 bpobj_free(bpo->bpo_os, subobj, tx); in bpobj_enqueue_subobj()
398 dmu_buf_will_dirty(bpo->bpo_dbuf, tx); in bpobj_enqueue_subobj()
402 DMU_OT_NONE, 0, tx); in bpobj_enqueue_subobj()
412 sizeof (subobj), &subobj, tx); in bpobj_enqueue_subobj()
439 numsubsub * sizeof (subobj), subdb->db_data, tx); in bpobj_enqueue_subobj()
443 dmu_buf_will_dirty(subbpo.bpo_dbuf, tx); in bpobj_enqueue_subobj()
446 subsubobjs, tx)); in bpobj_enqueue_subobj()
458 bpobj_enqueue(bpobj_t *bpo, const blkptr_t *bp, dmu_tx_t *tx) in bpobj_enqueue() argument
506 dmu_buf_will_dirty(bpo->bpo_cached_dbuf, tx); in bpobj_enqueue()
510 dmu_buf_will_dirty(bpo->bpo_dbuf, tx); in bpobj_enqueue()
532 space_range_cb(void *arg, const blkptr_t *bp, dmu_tx_t *tx) in space_range_cb() argument