| 603 | } |
| 604 | |
| 605 | static struct namecache * |
| 606 | cache_alloc_uma(int len, bool ts) |
| 607 | { |
| 608 | struct namecache_ts *ncp_ts; |
| 609 | struct namecache *ncp; |
| 610 | |
| 611 | if (__predict_false(ts)) { |
| 612 | if (len <= CACHE_PATH_CUTOFF) |
| 613 | ncp_ts = uma_zalloc_smr(cache_zone_small_ts, M_WAITOK); |
| 614 | else |
| 615 | ncp_ts = uma_zalloc_smr(cache_zone_large_ts, M_WAITOK); |
| 616 | ncp = &ncp_ts->nc_nc; |
| 617 | } else { |
| 618 | if (len <= CACHE_PATH_CUTOFF) |
| 619 | ncp = uma_zalloc_smr(cache_zone_small, M_WAITOK); |
| 620 | else |
| 621 | ncp = uma_zalloc_smr(cache_zone_large, M_WAITOK); |
| 622 | } |
| 623 | return (ncp); |
| 624 | } |
| 625 | |
| 626 | static void |
| 627 | cache_free_uma(struct namecache *ncp) |
no test coverage detected