Lines Matching full:hash

38 static MALLOC_DEFINE(M_VFS_HASH, "vfs_hash", "VFS hash table");
50 rw_init(&vfs_hash_lock, "vfs hash"); in vfs_hashinit()
65 vfs_hash_bucket(const struct mount *mp, u_int hash) in vfs_hash_bucket() argument
68 return (&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]); in vfs_hash_bucket()
72 vfs_hash_get(const struct mount *mp, u_int hash, int flags, struct thread *td, in vfs_hash_get() argument
81 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_get()
82 if (vp->v_hash != hash) in vfs_hash_get()
95 if (vp->v_hash != hash || in vfs_hash_get()
113 vfs_hash_ref(const struct mount *mp, u_int hash, struct thread *td, in vfs_hash_ref() argument
120 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_ref()
121 if (vp->v_hash != hash) in vfs_hash_ref()
152 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, in vfs_hash_insert() argument
163 vfs_hash_bucket(vp->v_mount, hash), v_hashlist) { in vfs_hash_insert()
164 if (vp2->v_hash != hash) in vfs_hash_insert()
187 vp->v_hash = hash; in vfs_hash_insert()
188 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); in vfs_hash_insert()
194 vfs_hash_rehash(struct vnode *vp, u_int hash) in vfs_hash_rehash() argument
200 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); in vfs_hash_rehash()
201 vp->v_hash = hash; in vfs_hash_rehash()
215 /* If same hash table size, nothing to do */ in vfs_hash_changesize()
221 * Move everything from the old hash table to the new table. in vfs_hash_changesize()
223 * do so, they have to be removed from the hash table. in vfs_hash_changesize()