svn commit: r245411 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Mon Jan 14 05:52:24 UTC 2013


Author: kib
Date: Mon Jan 14 05:52:23 2013
New Revision: 245411
URL: http://svnweb.freebsd.org/changeset/base/245411

Log:
  Add a trivial comment to record the proper commit log for r245407:
  
  Set the v_hash for a new vnode in the getnewvnode() to the value
  calculated based on the vnode structure address.  Filesystems using
  vfs_hash_insert() override the v_hash using the standard formula of
  (inode_number + mnt_hashseed).  For other filesystems, the
  initialization allows the vfs_hash_index() to provide useful hash too.
  
  Suggested, reviewed and tested by:	peter
  Sponsored by:	The FreeBSD Foundation
  MFC after:	5 days

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Mon Jan 14 05:46:49 2013	(r245410)
+++ head/sys/kern/vfs_subr.c	Mon Jan 14 05:52:23 2013	(r245411)
@@ -279,6 +279,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhe
 #define VSHOULDFREE(vp) (!((vp)->v_iflag & VI_FREE) && !(vp)->v_holdcnt)
 #define VSHOULDBUSY(vp) (((vp)->v_iflag & VI_FREE) && (vp)->v_holdcnt)
 
+/* Shift count for (uintptr_t)vp to initialize vp->v_hash. */
 static int vnsz2log;
 
 /*


More information about the svn-src-all mailing list