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

Function create_fallback_mem

freebsd/contrib/openzfs/module/zstd/zfs_zstd.c:645–651  ·  view source on GitHub ↗

Allocate fallback memory to ensure safe decompression */

Source from the content-addressed store, hash-verified

643
644/* Allocate fallback memory to ensure safe decompression */
645static void __init
646create_fallback_mem(struct zstd_fallback_mem *mem, size_t size)
647{
648 mem->mem_size = size;
649 mem->mem = vmem_zalloc(mem->mem_size, KM_SLEEP);
650 mutex_init(&mem->barrier, NULL, MUTEX_DEFAULT, NULL);
651}
652
653/* Initialize memory pool barrier mutexes */
654static void __init

Callers 1

zstd_meminitFunction · 0.85

Calls 1

mutex_initFunction · 0.50

Tested by

no test coverage detected