Lines Matching refs:os

37 bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx)  in bpobj_alloc_empty()  argument
39 spa_t *spa = dmu_objset_spa(os); in bpobj_alloc_empty()
40 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_alloc_empty()
46 bpobj_alloc(os, SPA_OLD_MAXBLOCKSIZE, tx); in bpobj_alloc_empty()
47 VERIFY(zap_add(os, in bpobj_alloc_empty()
56 return (bpobj_alloc(os, blocksize, tx)); in bpobj_alloc_empty()
61 bpobj_decr_empty(objset_t *os, dmu_tx_t *tx) in bpobj_decr_empty() argument
63 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_decr_empty()
65 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_decr_empty()
66 if (!spa_feature_is_active(dmu_objset_spa(os), in bpobj_decr_empty()
71 VERIFY3U(0, ==, dmu_object_free(os, dp->dp_empty_bpobj, tx)); in bpobj_decr_empty()
77 bpobj_alloc(objset_t *os, int blocksize, dmu_tx_t *tx) in bpobj_alloc() argument
81 if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_BPOBJ_ACCOUNT) in bpobj_alloc()
83 else if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) in bpobj_alloc()
88 return (dmu_object_alloc(os, DMU_OT_BPOBJ, blocksize, in bpobj_alloc()
93 bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bpobj_free() argument
101 ASSERT(obj != dmu_objset_pool(os)->dp_empty_bpobj); in bpobj_free()
102 VERIFY3U(0, ==, bpobj_open(&bpo, os, obj)); in bpobj_free()
109 VERIFY3U(0, ==, dmu_object_info(os, bpo.bpo_phys->bpo_subobjs, &doi)); in bpobj_free()
122 VERIFY3U(0, ==, dmu_buf_hold(os, in bpobj_free()
130 bpobj_free(os, objarray[blkoff], tx); in bpobj_free()
136 VERIFY3U(0, ==, dmu_object_free(os, bpo.bpo_phys->bpo_subobjs, tx)); in bpobj_free()
142 VERIFY3U(0, ==, dmu_object_free(os, obj, tx)); in bpobj_free()
146 bpobj_open(bpobj_t *bpo, objset_t *os, uint64_t object) in bpobj_open() argument
151 err = dmu_object_info(os, object, &doi); in bpobj_open()
164 err = dmu_bonus_hold(os, object, bpo, &bpo->bpo_dbuf); in bpobj_open()
168 bpo->bpo_os = os; in bpobj_open()