From e6257a9a09fdcf8c7ca138b9a39f975e9185c5b1 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 26 Jun 1999 14:46:35 +0000 Subject: [PATCH] GC the remnants of the old pre-softupdates update daemon. It's been #if 0'd for a fair while now. --- sys/kern/vfs_bio.c | 49 +--------------------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 48f2c38a0e16..fbb3786ed3dd 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -11,7 +11,7 @@ * 2. Absolutely no warranty of function or purpose is made by the author * John S. Dyson. * - * $Id: vfs_bio.c,v 1.215 1999/06/22 01:39:53 mckusick Exp $ + * $Id: vfs_bio.c,v 1.216 1999/06/26 02:46:06 mckusick Exp $ */ /* @@ -56,17 +56,6 @@ static MALLOC_DEFINE(M_BIOBUF, "BIO buffer", "BIO buffer"); struct bio_ops bioops; /* I/O operation notification */ -#if 0 /* replaced bu sched_sync */ -static void vfs_update __P((void)); -static struct proc *updateproc; -static struct kproc_desc up_kp = { - "update", - vfs_update, - &updateproc -}; -SYSINIT_KT(update, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp) -#endif - struct buf *buf; /* buffer header pool */ struct swqueue bswlist; @@ -82,12 +71,6 @@ static void vfs_vmio_release(struct buf *bp); static void flushdirtybuffers(int slpflag, int slptimeo); static int flushbufqueues(void); -/* - * Internal update daemon, process 3 - * The variable vfs_update_wakeup allows for internal syncs. - */ -int vfs_update_wakeup; - /* * bogus page -- for I/O to/from partially complete buffers * this is a temporary solution to the problem, but it is not @@ -2608,36 +2591,6 @@ biodone(register struct buf * bp) splx(s); } -#if 0 /* not with kirks code */ -static int vfs_update_interval = 30; - -static void -vfs_update() -{ - while (1) { - tsleep(&vfs_update_wakeup, PUSER, "update", - hz * vfs_update_interval); - vfs_update_wakeup = 0; - sync(curproc, NULL); - } -} - -static int -sysctl_kern_updateinterval SYSCTL_HANDLER_ARGS -{ - int error = sysctl_handle_int(oidp, - oidp->oid_arg1, oidp->oid_arg2, req); - if (!error) - wakeup(&vfs_update_wakeup); - return error; -} - -SYSCTL_PROC(_kern, KERN_UPDATEINTERVAL, update, CTLTYPE_INT|CTLFLAG_RW, - &vfs_update_interval, 0, sysctl_kern_updateinterval, "I", ""); - -#endif - - /* * This routine is called in lieu of iodone in the case of * incomplete I/O. This keeps the busy status for pages