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
This commit is contained in:
parent
8423e00b36
commit
c60c36a745
@ -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_ */
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user