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

Function space_map_close

freebsd/contrib/openzfs/module/zfs/space_map.c:840–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void
841space_map_close(space_map_t *sm)
842{
843 if (sm == NULL)
844 return;
845
846 if (sm->sm_dbuf != NULL)
847 dmu_buf_rele(sm->sm_dbuf, sm);
848 sm->sm_dbuf = NULL;
849 sm->sm_phys = NULL;
850
851 kmem_free(sm, sizeof (*sm));
852}
853
854void
855space_map_truncate(space_map_t *sm, int blocksize, dmu_tx_t *tx)

Callers 15

spa_ld_log_sm_dataFunction · 0.85
metaslab_finiFunction · 0.85
vdev_freeFunction · 0.85
vdev_metaslab_finiFunction · 0.85
vdev_dtl_syncFunction · 0.85
space_map_openFunction · 0.85

Calls 2

dmu_buf_releFunction · 0.85
kmem_freeFunction · 0.50

Tested by

no test coverage detected