Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2009 00:31:48 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r186881 - user/kmacy/HEAD_fast_net/sys/kern
Message-ID:  <200901080031.n080Vm6R003945@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.
 	 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901080031.n080Vm6R003945>