Lines Matching refs:os
38 bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx) in bpobj_alloc_empty() argument
40 spa_t *spa = dmu_objset_spa(os); in bpobj_alloc_empty()
41 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_alloc_empty()
47 bpobj_alloc(os, SPA_OLD_MAXBLOCKSIZE, tx); in bpobj_alloc_empty()
48 VERIFY(zap_add(os, 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
64 dsl_pool_t *dp = dmu_objset_pool(os); in bpobj_decr_empty()
66 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_decr_empty()
67 if (!spa_feature_is_active(dmu_objset_spa(os), 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
82 if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_BPOBJ_ACCOUNT) in bpobj_alloc()
84 else if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) in bpobj_alloc()
89 return (dmu_object_alloc(os, DMU_OT_BPOBJ, blocksize, in bpobj_alloc()
94 bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx) in bpobj_free() argument
102 ASSERT(obj != dmu_objset_pool(os)->dp_empty_bpobj); in bpobj_free()
103 VERIFY3U(0, ==, bpobj_open(&bpo, os, obj)); in bpobj_free()
110 VERIFY3U(0, ==, dmu_object_info(os, bpo.bpo_phys->bpo_subobjs, &doi)); in bpobj_free()
123 VERIFY3U(0, ==, dmu_buf_hold(os, in bpobj_free()
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()
147 bpobj_open(bpobj_t *bpo, objset_t *os, uint64_t object) in bpobj_open() argument
152 err = dmu_object_info(os, object, &doi); in bpobj_open()
165 err = dmu_bonus_hold(os, object, bpo, &bpo->bpo_dbuf); in bpobj_open()
169 bpo->bpo_os = os; in bpobj_open()