| 569 | static uma_zone_t __read_mostly cache_zone_large_ts; |
| 570 | |
| 571 | char * |
| 572 | cache_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 | |
| 586 | void |
| 587 | cache_symlink_free(char *string, size_t size) |
no test coverage detected