Lines Matching defs:hash
39 static MALLOC_DEFINE(M_VFS_HASH, "vfs_hash", "VFS hash table");
51 rw_init(&vfs_hash_lock, "vfs hash");
66 vfs_hash_bucket(const struct mount *mp, u_int hash)
69 return (&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]);
73 vfs_hash_get(const struct mount *mp, u_int hash, int flags, struct thread *td,
81 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) {
82 if (vp->v_hash != hash)
107 vfs_hash_ref(const struct mount *mp, u_int hash, struct thread *td,
114 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) {
115 if (vp->v_hash != hash)
146 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td,
156 vfs_hash_bucket(vp->v_mount, hash), v_hashlist) {
157 if (vp2->v_hash != hash)
180 vp->v_hash = hash;
181 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist);
187 vfs_hash_rehash(struct vnode *vp, u_int hash)
192 LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist);
193 vp->v_hash = hash;
207 /* If same hash table size, nothing to do */
213 * Move everything from the old hash table to the new table.
215 * do so, they have to be removed from the hash table.