* TODO: With the value stored we can do better than computing the hash based * on the address. The choice of FNV should also be revisited. */
| 709 | * on the address. The choice of FNV should also be revisited. |
| 710 | */ |
| 711 | static void |
| 712 | cache_prehash(struct vnode *vp) |
| 713 | { |
| 714 | |
| 715 | vp->v_nchash = fnv_32_buf(&vp, sizeof(vp), FNV1_32_INIT); |
| 716 | } |
| 717 | |
| 718 | static uint32_t |
| 719 | cache_get_hash(char *name, u_char len, struct vnode *dvp) |
no test coverage detected