| 624 | } |
| 625 | |
| 626 | static void |
| 627 | cache_free_uma(struct namecache *ncp) |
| 628 | { |
| 629 | struct namecache_ts *ncp_ts; |
| 630 | |
| 631 | if (__predict_false(ncp->nc_flag & NCF_TS)) { |
| 632 | ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); |
| 633 | if (ncp->nc_nlen <= CACHE_PATH_CUTOFF) |
| 634 | uma_zfree_smr(cache_zone_small_ts, ncp_ts); |
| 635 | else |
| 636 | uma_zfree_smr(cache_zone_large_ts, ncp_ts); |
| 637 | } else { |
| 638 | if (ncp->nc_nlen <= CACHE_PATH_CUTOFF) |
| 639 | uma_zfree_smr(cache_zone_small, ncp); |
| 640 | else |
| 641 | uma_zfree_smr(cache_zone_large, ncp); |
| 642 | } |
| 643 | } |
| 644 | |
| 645 | static struct namecache * |
| 646 | cache_alloc(int len, bool ts) |
no test coverage detected