summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-02 19:17:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-02 19:17:25 +0000
commita084df37d12e77a60f08f8869600779e95aaea6e (patch)
tree8c76fb2a9917ecb4d4dbab0e547bec4e8740feb7
parent36260a1eb0337e576054a3d4ef093da24b1cb4bd (diff)
The vndbufpl is no longer used.
Spotted by matthew, verified by me.
-rw-r--r--sys/dev/vnd.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index cf519f67557..f7d8e24a2fc 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.121 2011/06/02 19:16:28 deraadt Exp $ */
+/* $OpenBSD: vnd.c,v 1.122 2011/06/02 19:17:24 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -92,14 +92,6 @@ struct vndbuf {
struct buf *vb_obp;
};
-/*
- * struct vndbuf allocator
- */
-struct pool vndbufpl;
-
-#define getvndbuf() pool_get(&vndbufpl, PR_WAITOK)
-#define putvndbuf(vbp) pool_put(&vndbufpl, vbp);
-
struct vnd_softc {
struct device sc_dev;
struct disk sc_dk;
@@ -189,10 +181,6 @@ vndattach(int num)
device_ref(&sc->sc_dev);
}
numvnd = num;
-
- pool_init(&vndbufpl, sizeof(struct vndbuf), 0, 0, 0, "vndbufpl", NULL);
- pool_setlowat(&vndbufpl, 16);
- pool_sethiwat(&vndbufpl, 1024);
}
int