Lines Matching refs:os
62 bptree_alloc(objset_t *os, dmu_tx_t *tx) in bptree_alloc() argument
68 obj = dmu_object_alloc(os, DMU_OTN_UINT64_METADATA, in bptree_alloc()
76 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_alloc()
90 bptree_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bptree_free() argument
95 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_free()
103 return (dmu_object_free(os, obj, tx)); in bptree_free()
107 bptree_is_empty(objset_t *os, uint64_t obj) in bptree_is_empty() argument
113 VERIFY0(dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_is_empty()
121 bptree_add(objset_t *os, uint64_t obj, blkptr_t *bp, uint64_t birth_txg, in bptree_add() argument
135 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_add()
140 dmu_write(os, obj, bt->bt_end * sizeof (bte), sizeof (bte), &bte, tx); in bptree_add()
187 bptree_iterate(objset_t *os, uint64_t obj, boolean_t free, bptree_itor_t func, in bptree_iterate() argument
198 err = dmu_bonus_hold(os, obj, FTAG, &db); in bptree_iterate()
216 err = dmu_read(os, obj, i * sizeof (bte), sizeof (bte), in bptree_iterate()
230 err = traverse_dataset_destroyed(os->os_spa, &bte.be_bp, in bptree_iterate()
245 dmu_write(os, obj, i * sizeof (bte), in bptree_iterate()
267 dmu_write(os, obj, i * sizeof (bte), in bptree_iterate()
273 (void) dmu_free_range(os, obj, in bptree_iterate()