MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bpobj_decr_empty

Function bpobj_decr_empty

freebsd/contrib/openzfs/module/zfs/bpobj.c:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void
62bpobj_decr_empty(objset_t *os, dmu_tx_t *tx)
63{
64 dsl_pool_t *dp = dmu_objset_pool(os);
65
66 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx);
67 if (!spa_feature_is_active(dmu_objset_spa(os),
68 SPA_FEATURE_EMPTY_BPOBJ)) {
69 VERIFY3U(0, ==, zap_remove(dp->dp_meta_objset,
70 DMU_POOL_DIRECTORY_OBJECT,
71 DMU_POOL_EMPTY_BPOBJ, tx));
72 VERIFY3U(0, ==, dmu_object_free(os, dp->dp_empty_bpobj, tx));
73 dp->dp_empty_bpobj = 0;
74 }
75}
76
77uint64_t
78bpobj_alloc(objset_t *os, int blocksize, dmu_tx_t *tx)

Callers 6

bpobj_enqueue_subobjFunction · 0.85
dsl_deadlist_freeFunction · 0.85
dle_enqueueFunction · 0.85
dle_enqueue_subobjFunction · 0.85
dsl_deadlist_clear_entryFunction · 0.85

Calls 6

dmu_objset_poolFunction · 0.85
spa_feature_decrFunction · 0.85
dmu_objset_spaFunction · 0.85
spa_feature_is_activeFunction · 0.85
zap_removeFunction · 0.85
dmu_object_freeFunction · 0.85

Tested by

no test coverage detected