summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-06-03 03:14:29 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-06-03 03:14:29 +0000
commit0d45748b5f9e901e134b2062f61a5f4e59f4fba3 (patch)
tree4696d4855d8f5dc57cca372fe194b0af846621de /sys/kern
parentc83610475c84770d23c294b4c28295dc5476024a (diff)
remove the never used bufq_ code.
ok oga@ 'dance for me' blambert@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_disk.c59
1 files changed, 1 insertions, 58 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 65707d76ba9..4e5e3ba504a 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.88 2009/05/15 01:57:16 deraadt Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.89 2009/06/03 03:14:28 thib Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -965,63 +965,6 @@ dk_mountroot(void)
return (*mountrootfn)();
}
-struct bufq *
-bufq_default_alloc(void)
-{
- struct bufq_default *bq;
-
- bq = malloc(sizeof(*bq), M_DEVBUF, M_NOWAIT|M_ZERO);
- if (bq == NULL)
- panic("bufq_default_alloc: no memory");
-
- bq->bufq.bufq_free = bufq_default_free;
- bq->bufq.bufq_add = bufq_default_add;
- bq->bufq.bufq_get = bufq_default_get;
-
- return ((struct bufq *)bq);
-}
-
-void
-bufq_default_free(struct bufq *bq)
-{
- free(bq, M_DEVBUF);
-}
-
-void
-bufq_default_add(struct bufq *bq, struct buf *bp)
-{
- struct bufq_default *bufq = (struct bufq_default *)bq;
- struct proc *p = bp->b_proc;
- struct buf *head;
-
- if (p == NULL || p->p_nice < NZERO)
- head = &bufq->bufq_head[0];
- else if (p->p_nice == NZERO)
- head = &bufq->bufq_head[1];
- else
- head = &bufq->bufq_head[2];
-
- disksort(head, bp);
-}
-
-struct buf *
-bufq_default_get(struct bufq *bq)
-{
- struct bufq_default *bufq = (struct bufq_default *)bq;
- struct buf *bp, *head;
- int i;
-
- for (i = 0; i < 3; i++) {
- head = &bufq->bufq_head[i];
- if ((bp = head->b_actf))
- break;
- }
- if (bp == NULL)
- return (NULL);
- head->b_actf = bp->b_actf;
- return (bp);
-}
-
struct device *
getdisk(char *str, int len, int defpart, dev_t *devp)
{