svn commit: r186881 - user/kmacy/HEAD_fast_net/sys/kern

Kip Macy kmacy at FreeBSD.org
Wed Jan 7 16:31:49 PST 2009


Author: kmacy
Date: Thu Jan  8 00:31:48 2009
New Revision: 186881
URL: http://svn.freebsd.org/changeset/base/186881

Log:
  track new vnode creation

Modified:
  user/kmacy/HEAD_fast_net/sys/kern/vfs_subr.c

Modified: user/kmacy/HEAD_fast_net/sys/kern/vfs_subr.c
==============================================================================
--- user/kmacy/HEAD_fast_net/sys/kern/vfs_subr.c	Thu Jan  8 00:08:34 2009	(r186880)
+++ user/kmacy/HEAD_fast_net/sys/kern/vfs_subr.c	Thu Jan  8 00:31:48 2009	(r186881)
@@ -169,6 +169,9 @@ SYSCTL_LONG(_vfs, OID_AUTO, freevnodes, 
 static int reassignbufcalls;
 SYSCTL_INT(_vfs, OID_AUTO, reassignbufcalls, CTLFLAG_RW, &reassignbufcalls, 0, "");
 
+static int newvnodes;
+SYSCTL_INT(_vfs, OID_AUTO, newvnodes, CTLFLAG_RD, &newvnodes, 0, "");
+
 /*
  * Cache for the mount type id assigned to NFS.  This is used for
  * special checks in nfs/nfs_nqlease.c and vm/vnode_pager.c.
@@ -922,6 +925,8 @@ getnewvnode(const char *tag, struct moun
 	struct bufobj *bo;
 
 	mtx_lock(&vnode_free_list_mtx);
+	newvnodes++;
+
 	/*
 	 * Lend our context to reclaim vnodes if they've exceeded the max.
 	 */


More information about the svn-src-user mailing list