Lines Matching refs:os

39 bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx)  in bpobj_alloc_empty()  argument
41 spa_t *spa = dmu_objset_spa(os); in bpobj_alloc_empty()
42 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_alloc_empty()
48 bpobj_alloc(os, SPA_OLD_MAXBLOCKSIZE, tx); in bpobj_alloc_empty()
49 VERIFY(zap_add(os, in bpobj_alloc_empty()
58 return (bpobj_alloc(os, blocksize, tx)); in bpobj_alloc_empty()
63 bpobj_decr_empty(objset_t *os, dmu_tx_t *tx) in bpobj_decr_empty() argument
65 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_decr_empty()
67 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_decr_empty()
68 if (!spa_feature_is_active(dmu_objset_spa(os), in bpobj_decr_empty()
73 VERIFY3U(0, ==, dmu_object_free(os, dp->dp_empty_bpobj, tx)); in bpobj_decr_empty()
79 bpobj_alloc(objset_t *os, int blocksize, dmu_tx_t *tx) in bpobj_alloc() argument
83 if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_BPOBJ_ACCOUNT) in bpobj_alloc()
85 else if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) in bpobj_alloc()
90 return (dmu_object_alloc(os, DMU_OT_BPOBJ, blocksize, in bpobj_alloc()
95 bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bpobj_free() argument
103 ASSERT(obj != dmu_objset_pool(os)->dp_empty_bpobj); in bpobj_free()
104 VERIFY3U(0, ==, bpobj_open(&bpo, os, obj)); in bpobj_free()
111 VERIFY3U(0, ==, dmu_object_info(os, bpo.bpo_phys->bpo_subobjs, &doi)); in bpobj_free()
124 VERIFY3U(0, ==, dmu_buf_hold(os, in bpobj_free()
132 bpobj_free(os, objarray[blkoff], tx); in bpobj_free()
138 VERIFY3U(0, ==, dmu_object_free(os, bpo.bpo_phys->bpo_subobjs, tx)); in bpobj_free()
144 VERIFY3U(0, ==, dmu_object_free(os, obj, tx)); in bpobj_free()
148 bpobj_open(bpobj_t *bpo, objset_t *os, uint64_t object) in bpobj_open() argument
153 err = dmu_object_info(os, object, &doi); in bpobj_open()
166 err = dmu_bonus_hold(os, object, bpo, &bpo->bpo_dbuf); in bpobj_open()
170 bpo->bpo_os = os; in bpobj_open()