aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-05-11 22:46:36 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-05-11 22:46:36 +0000
commitc60c36a74549ad6ebf6427b4cd2199e4fab12093 (patch)
treebc5983f803b6c2bdb886cb569f28f6984ab99e10 /sys
parent8423e00b36933ee4f9a6b5c49c366d0f575c8240 (diff)
downloadsrc-c60c36a74549ad6ebf6427b4cd2199e4fab12093.tar.gz
src-c60c36a74549ad6ebf6427b4cd2199e4fab12093.zip
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
Notes
Notes: svn path=/head/; revision=207937
Diffstat (limited to 'sys')
-rw-r--r--sys/cddl/compat/opensolaris/sys/dnlc.h2
-rw-r--r--sys/kern/vfs_subr.c1
-rw-r--r--sys/sys/eventhandler.h4
3 files changed, 1 insertions, 6 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/dnlc.h b/sys/cddl/compat/opensolaris/sys/dnlc.h
index e978e975bc8a..a2d4f01263fc 100644
--- a/sys/cddl/compat/opensolaris/sys/dnlc.h
+++ b/sys/cddl/compat/opensolaris/sys/dnlc.h
@@ -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_ */
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ae182e008391..d93d2d804fa2 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -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)
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h
index 47a0efc764af..8fa0cea4c38e 100644
--- a/sys/sys/eventhandler.h
+++ b/sys/sys/eventhandler.h
@@ -183,10 +183,6 @@ typedef void (*vm_lowmem_handler_t)(void *, int);
#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);