| 419 | } |
| 420 | |
| 421 | static void |
| 422 | cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) |
| 423 | { |
| 424 | struct namecache_ts *ncp_ts; |
| 425 | |
| 426 | KASSERT((ncp->nc_flag & NCF_TS) != 0 || |
| 427 | (tsp == NULL && ticksp == NULL), |
| 428 | ("No NCF_TS")); |
| 429 | |
| 430 | if (tsp == NULL) |
| 431 | return; |
| 432 | |
| 433 | ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc); |
| 434 | *tsp = ncp_ts->nc_time; |
| 435 | *ticksp = ncp_ts->nc_ticks; |
| 436 | } |
| 437 | |
| 438 | #ifdef DEBUG_CACHE |
| 439 | static int __read_mostly doingcache = 1; /* 1 => enable the cache */ |
no outgoing calls
no test coverage detected