* Mark an entry as invalid. * * This is called before it starts getting deconstructed. */
| 240 | * This is called before it starts getting deconstructed. |
| 241 | */ |
| 242 | static void |
| 243 | cache_ncp_invalidate(struct namecache *ncp) |
| 244 | { |
| 245 | |
| 246 | KASSERT((ncp->nc_flag & NCF_INVALID) == 0, |
| 247 | ("%s: entry %p already invalid", __func__, ncp)); |
| 248 | atomic_store_char(&ncp->nc_flag, ncp->nc_flag | NCF_INVALID); |
| 249 | atomic_thread_fence_rel(); |
| 250 | } |
| 251 | |
| 252 | /* |
| 253 | * Check whether the entry can be safely used. |
no test coverage detected