diff options
author | phk <phk@FreeBSD.org> | 2005-04-07 07:54:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-04-07 07:54:08 +0000 |
commit | b7a4869221a838f4dd4856a2d45e1a47c03f4e72 (patch) | |
tree | 8cde68985b3d242ef378374b774939d772e620d6 /sys/kern | |
parent | 3035fc244ca7ec00c84a7ab1bf5cdc48fba91b91 (diff) | |
download | FreeBSD-src-b7a4869221a838f4dd4856a2d45e1a47c03f4e72.zip FreeBSD-src-b7a4869221a838f4dd4856a2d45e1a47c03f4e72.tar.gz |
Fix bug in vfs_hash_rehash(): use correct bucket. This only affected
msdosfs which is broken in other ways too.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_hash.c b/sys/kern/vfs_hash.c index e441259..bedbe44 100644 --- a/sys/kern/vfs_hash.c +++ b/sys/kern/vfs_hash.c @@ -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); } |