svn commit: r207937 - in head/sys: cddl/compat/opensolaris/sys kern sys

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue May 11 22:46:37 UTC 2010


Author: pjd
Date: Tue May 11 22:46:36 2010
New Revision: 207937
URL: http://svn.freebsd.org/changeset/base/207937

Log:
  I added vfs_lowvnodes event, but it was only used for a short while and now
  it is totally unused. Remove it.
  
  MFC after:	3 days

Modified:
  head/sys/cddl/compat/opensolaris/sys/dnlc.h
  head/sys/kern/vfs_subr.c
  head/sys/sys/eventhandler.h

Modified: head/sys/cddl/compat/opensolaris/sys/dnlc.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/dnlc.h	Tue May 11 22:29:00 2010	(r207936)
+++ head/sys/cddl/compat/opensolaris/sys/dnlc.h	Tue May 11 22:46:36 2010	(r207937)
@@ -35,6 +35,6 @@
 #define	dnlc_update(dvp, name, vp)	do { } while (0)
 #define	dnlc_remove(dvp, name)		do { } while (0)
 #define	dnlc_purge_vfsp(vfsp, count)	(0)
-#define	dnlc_reduce_cache(percent)	EVENTHANDLER_INVOKE(vfs_lowvnodes, (int)(intptr_t)(percent))
+#define	dnlc_reduce_cache(percent)	do { } while (0)
 
 #endif	/* !_OPENSOLARIS_SYS_DNLC_H_ */

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Tue May 11 22:29:00 2010	(r207936)
+++ head/sys/kern/vfs_subr.c	Tue May 11 22:46:36 2010	(r207937)
@@ -800,7 +800,6 @@ vnlru_proc(void)
 		}
 		mtx_unlock(&mountlist_mtx);
 		if (done == 0) {
-			EVENTHANDLER_INVOKE(vfs_lowvnodes, desiredvnodes / 10);
 #if 0
 			/* These messages are temporary debugging aids */
 			if (vnlru_nowhere < 5)

Modified: head/sys/sys/eventhandler.h
==============================================================================
--- head/sys/sys/eventhandler.h	Tue May 11 22:29:00 2010	(r207936)
+++ head/sys/sys/eventhandler.h	Tue May 11 22:46:36 2010	(r207937)
@@ -183,10 +183,6 @@ typedef void (*vm_lowmem_handler_t)(void
 #define	LOWMEM_PRI_DEFAULT	EVENTHANDLER_PRI_FIRST
 EVENTHANDLER_DECLARE(vm_lowmem, vm_lowmem_handler_t);
 
-/* Low vnodes event */
-typedef void (*vfs_lowvnodes_handler_t)(void *, int);
-EVENTHANDLER_DECLARE(vfs_lowvnodes, vfs_lowvnodes_handler_t);
-
 /* Root mounted event */
 typedef void (*mountroot_handler_t)(void *);
 EVENTHANDLER_DECLARE(mountroot, mountroot_handler_t);


More information about the svn-src-head mailing list