Fix bug in vfs_hash_rehash(): use correct bucket. This only affected

msdosfs which is broken in other ways too.
This commit is contained in:
Poul-Henning Kamp 2005-04-07 07:54:08 +00:00
parent 53767efdce
commit 2e0b9b22f0

View File

@ -150,7 +150,7 @@ vfs_hash_rehash(struct vnode *vp, u_int hash)
mtx_lock(&vfs_hash_mtx);
LIST_REMOVE(vp, v_hashlist);
LIST_INSERT_HEAD(&vfs_hash_tbl[hash & vfs_hash_mask], vp, v_hashlist);
LIST_INSERT_HEAD(vfs_hash_index(vp->v_mount, hash), vp, v_hashlist);
vp->v_hash = hash;
mtx_unlock(&vfs_hash_mtx);
}