Lines Matching refs:hash
66 vfs_hash_bucket(const struct mount *mp, u_int hash) in vfs_hash_bucket() argument
69 return (&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]); in vfs_hash_bucket()
73 vfs_hash_get(const struct mount *mp, u_int hash, int flags, struct thread *td, in vfs_hash_get() argument
82 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_get()
83 if (vp->v_hash != hash) in vfs_hash_get()
96 if (vp->v_hash != hash || in vfs_hash_get()
114 vfs_hash_ref(const struct mount *mp, u_int hash, struct thread *td, in vfs_hash_ref() argument
121 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_ref()
122 if (vp->v_hash != hash) in vfs_hash_ref()
153 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, in vfs_hash_insert() argument
164 vfs_hash_bucket(vp->v_mount, hash), v_hashlist) { in vfs_hash_insert()
165 if (vp2->v_hash != hash) in vfs_hash_insert()
188 vp->v_hash = hash; in vfs_hash_insert()
189 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); in vfs_hash_insert()
195 vfs_hash_rehash(struct vnode *vp, u_int hash) in vfs_hash_rehash() argument
201 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); in vfs_hash_rehash()
202 vp->v_hash = hash; in vfs_hash_rehash()