[Midnightbsd-cvs] src [8727] trunk/sys/kern/vfs_hash.c: add this back in because nullfs needs it

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 25 18:40:55 EDT 2016


Revision: 8727
          http://svnweb.midnightbsd.org/src/?rev=8727
Author:   laffer1
Date:     2016-09-25 18:40:55 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
add this back in because nullfs needs it

Modified Paths:
--------------
    trunk/sys/kern/vfs_hash.c

Modified: trunk/sys/kern/vfs_hash.c
===================================================================
--- trunk/sys/kern/vfs_hash.c	2016-09-25 22:40:19 UTC (rev 8726)
+++ trunk/sys/kern/vfs_hash.c	2016-09-25 22:40:55 UTC (rev 8727)
@@ -54,6 +54,13 @@
 /* Must be SI_ORDER_SECOND so desiredvnodes is available */
 SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL);
 
+u_int
+vfs_hash_index(struct vnode *vp)
+{
+
+	return (vp->v_hash + vp->v_mount->mnt_hashseed);
+}
+
 static struct vfs_hash_head *
 vfs_hash_bucket(const struct mount *mp, u_int hash)
 {



More information about the Midnightbsd-cvs mailing list