freebsd-skq/sys
kib cef86179d2 diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 7c243b6..0bdaf36 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -279,6 +279,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW,
 #define VSHOULDFREE(vp) (!((vp)->v_iflag & VI_FREE) && !(vp)->v_holdcnt)
 #define VSHOULDBUSY(vp) (((vp)->v_iflag & VI_FREE) && (vp)->v_holdcnt)

+static int vnsz2log;

 /*
  * Initialize the vnode management data structures.
@@ -293,6 +294,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW,
 static void
 vntblinit(void *dummy __unused)
 {
+	u_int i;
 	int physvnodes, virtvnodes;

 	/*
@@ -332,6 +334,9 @@ vntblinit(void *dummy __unused)
 	syncer_maxdelay = syncer_mask + 1;
 	mtx_init(&sync_mtx, "Syncer mtx", NULL, MTX_DEF);
 	cv_init(&sync_wakeup, "syncer");
+	for (i = 1; i <= sizeof(struct vnode); i <<= 1)
+		vnsz2log++;
+	vnsz2log--;
 }
 SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL);

@@ -1067,6 +1072,14 @@ alloc:
 	}
 	rangelock_init(&vp->v_rl);

+	/*
+	 * For the filesystems which do not use vfs_hash_insert(),
+	 * still initialize v_hash to have vfs_hash_index() useful.
+	 * E.g., nullfs uses vfs_hash_index() on the lower vnode for
+	 * its own hashing.
+	 */
+	vp->v_hash = (uintptr_t)vp >> vnsz2log;
+
 	*vpp = vp;
 	return (0);
 }
2013-01-14 05:42:54 +00:00
..
amd64 Add VirtIO to the i386 and amd64 GENERIC kernels 2013-01-13 07:14:16 +00:00
arm Enable syscons framebuffer support for bcm2835. It makes possible to run Xorg 2013-01-13 22:05:46 +00:00
boot Bring in some userboot changes from the bhyve branch to reduce diffs. 2013-01-08 03:27:37 +00:00
bsm
cam - Add missig xpt_schedule() call for cases when requested immediate CCB 2013-01-11 19:11:56 +00:00
cddl The current ZFS code expects ddt_zap_count to always succeed by asserting 2013-01-10 19:26:56 +00:00
compat
conf Partially merge Perforce changeset 219942 to head: 2013-01-13 16:51:57 +00:00
contrib Use the right USB clock type on the EdgeRouter Lite. This fixes USB. 2013-01-02 23:29:54 +00:00
crypto
ddb
dev If we're doing a kickpcu, make sure we flush the whole RX list rather than 2013-01-13 22:41:58 +00:00
fs When nullfs mount is forcibly unmounted and nullfs vnode is reclaimed, 2013-01-10 18:24:48 +00:00
gdb
geom Windows driver writes relative volume IDs to metadata field. Use that value 2013-01-14 00:38:51 +00:00
gnu/fs
i386 Add VirtIO to the i386 and amd64 GENERIC kernels 2013-01-13 07:14:16 +00:00
ia64 Remove firewire devices missed in r244992. 2013-01-04 15:29:50 +00:00
isa
kern diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c 2013-01-14 05:42:54 +00:00
kgssapi
libkern
mips Partially merge Perforce changeset 219938 to head: 2013-01-13 16:27:56 +00:00
modules Link if_ath_spectral.c into the build. 2013-01-02 04:00:54 +00:00
net - Add dashes before copyright notices. 2013-01-07 19:36:11 +00:00
net80211 Add in the missing radiotap definitions from the sipsolutions.net 2013-01-08 06:59:21 +00:00
netatalk
netgraph Use DEVMETHOD_END, as suggested by hselasky@. 2012-12-26 19:14:21 +00:00
netinet Don't drop options from the third retransmitted SYN by default. If the 2013-01-09 20:27:06 +00:00
netinet6 Simplify in6_setscope() function to get better performance. 2013-01-10 00:10:24 +00:00
netipsec
netipx
netnatm
netncp
netpfil In netpfil/pf: 2012-12-28 09:19:49 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
pc98 MFi386: Make similar changes that were made to atkbdc in r245315. 2013-01-11 23:42:24 +00:00
pci
powerpc Enable the UFS quotas for big-iron GENERIC kernels. 2013-01-03 19:03:41 +00:00
rpc
security
sparc64 Revert bogus part of r241740. 2013-01-03 23:12:08 +00:00
sys Add exported vfs_hash_index() function, which calculates the canonical 2013-01-14 05:41:40 +00:00
teken
tools Fix build on ARM (and probably other platforms) 2012-12-28 06:52:53 +00:00
ufs Add flags argument to vfs_write_resume() and remove 2013-01-11 06:08:32 +00:00
vm - Improve readability of sys_obreak(). 2013-01-11 09:58:35 +00:00
x86 Add macros required to enable VMX operation on Intel processors. 2013-01-05 04:20:14 +00:00
xdr
xen
Makefile