| 1263 | } |
| 1264 | |
| 1265 | static void |
| 1266 | cache_neg_insert(struct namecache *ncp) |
| 1267 | { |
| 1268 | struct neglist *nl; |
| 1269 | |
| 1270 | MPASS(ncp->nc_flag & NCF_NEGATIVE); |
| 1271 | cache_assert_bucket_locked(ncp); |
| 1272 | nl = NCP2NEGLIST(ncp); |
| 1273 | mtx_lock(&nl->nl_lock); |
| 1274 | TAILQ_INSERT_TAIL(&nl->nl_list, ncp, nc_dst); |
| 1275 | mtx_unlock(&nl->nl_lock); |
| 1276 | atomic_add_long(&numneg, 1); |
| 1277 | } |
| 1278 | |
| 1279 | static void |
| 1280 | cache_neg_remove(struct namecache *ncp) |
no test coverage detected