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

Function cache_symlink_alloc

freebsd/kern/vfs_cache.c:571–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569static uma_zone_t __read_mostly cache_zone_large_ts;
570
571char *
572cache_symlink_alloc(size_t size, int flags)
573{
574
575 if (size < CACHE_ZONE_SMALL_SIZE) {
576 return (uma_zalloc_smr(cache_zone_small, flags));
577 }
578 if (size < CACHE_ZONE_LARGE_SIZE) {
579 return (uma_zalloc_smr(cache_zone_large, flags));
580 }
581 counter_u64_add(symlinktoobig, 1);
582 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size);
583 return (NULL);
584}
585
586void
587cache_symlink_free(char *string, size_t size)

Callers 2

zfs_freebsd_symlinkFunction · 0.85
zfs_freebsd_readlinkFunction · 0.85

Calls 2

uma_zalloc_smrFunction · 0.85
counter_u64_addFunction · 0.50

Tested by

no test coverage detected