summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-06-26 14:46:35 +0000
committerpeter <peter@FreeBSD.org>1999-06-26 14:46:35 +0000
commitf27334b347ed359cb09207673c2e4223c71fc26e (patch)
treeac7f80561ba6caffff33320804b1359425731b41 /sys/kern/vfs_bio.c
parent8aa37ce93896d038fb6991dfa4ddb9da20a3173a (diff)
downloadFreeBSD-src-f27334b347ed359cb09207673c2e4223c71fc26e.zip
FreeBSD-src-f27334b347ed359cb09207673c2e4223c71fc26e.tar.gz
GC the remnants of the old pre-softupdates update daemon. It's been
#if 0'd for a fair while now.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c49
1 files changed, 1 insertions, 48 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 48f2c38..fbb3786 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;
@@ -83,12 +72,6 @@ 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
* really that bad. it would be better to split the buffer
@@ -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
OpenPOWER on IntegriCloud