MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cache_prehash

Function cache_prehash

freebsd/kern/vfs_cache.c:711–716  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

709 * on the address. The choice of FNV should also be revisited.
710 */
711static void
712cache_prehash(struct vnode *vp)
713{
714
715 vp->v_nchash = fnv_32_buf(&vp, sizeof(vp), FNV1_32_INIT);
716}
717
718static uint32_t
719cache_get_hash(char *name, u_char len, struct vnode *dvp)

Callers 1

cache_vnode_initFunction · 0.85

Calls 1

fnv_32_bufFunction · 0.85

Tested by

no test coverage detected