Lines Matching refs:os
61 bptree_alloc(objset_t *os, dmu_tx_t *tx) in bptree_alloc() argument
67 obj = dmu_object_alloc(os, DMU_OTN_UINT64_METADATA, in bptree_alloc()
75 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_alloc()
89 bptree_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bptree_free() argument
94 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_free()
102 return (dmu_object_free(os, obj, tx)); in bptree_free()
106 bptree_is_empty(objset_t *os, uint64_t obj) in bptree_is_empty() argument
112 VERIFY0(dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_is_empty()
120 bptree_add(objset_t *os, uint64_t obj, blkptr_t *bp, uint64_t birth_txg, in bptree_add() argument
134 VERIFY3U(0, ==, dmu_bonus_hold(os, obj, FTAG, &db)); in bptree_add()
139 dmu_write(os, obj, bt->bt_end * sizeof (bte), sizeof (bte), &bte, tx); in bptree_add()
186 bptree_iterate(objset_t *os, uint64_t obj, boolean_t free, bptree_itor_t func, in bptree_iterate() argument
197 err = dmu_bonus_hold(os, obj, FTAG, &db); in bptree_iterate()
215 err = dmu_read(os, obj, i * sizeof (bte), sizeof (bte), in bptree_iterate()
229 err = traverse_dataset_destroyed(os->os_spa, &bte.be_bp, in bptree_iterate()
244 dmu_write(os, obj, i * sizeof (bte), in bptree_iterate()
266 dmu_write(os, obj, i * sizeof (bte), in bptree_iterate()
272 (void) dmu_free_range(os, obj, in bptree_iterate()