summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-05 20:57:05 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-05 20:57:05 +0000
commit368552036fe6029364e1abc2351955db681286fc (patch)
treeb3e9a57702ccbbcd0869d57d84ba28c1e1033e05 /sys/kern/uipc_mbuf.c
parente64b8c0b9c88452904cfa97be25cfec4e21e04ce (diff)
Get rid of CLSIZE and all related stuff.
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 7836872ae3f..7b4801f9d53 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.26 2001/04/05 10:52:45 art Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.27 2001/05/05 20:57:00 art Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -79,7 +79,7 @@ mbinit()
int s;
s = splimp();
- if (m_clalloc(max(4096 / CLBYTES, 1), M_DONTWAIT) == 0)
+ if (m_clalloc(max(4096 / PAGE_SIZE, 1), M_DONTWAIT) == 0)
goto bad;
splx(s);
return;
@@ -105,7 +105,7 @@ m_clalloc(ncl, nowait)
register int i;
int npg, s;
- npg = ncl * CLSIZE;
+ npg = ncl;
#if defined(UVM)
p = (caddr_t)uvm_km_kmemalloc(mb_map, uvmexp.mb_object, ctob(npg),
nowait ? 0 : UVM_KMF_NOWAIT);
@@ -124,7 +124,7 @@ m_clalloc(ncl, nowait)
m_reclaim();
return (mclfree != NULL);
}
- ncl = ncl * CLBYTES / MCLBYTES;
+ ncl = ncl * PAGE_SIZE / MCLBYTES;
for (i = 0; i < ncl; i++) {
((union mcluster *)p)->mcl_next = mclfree;
mclfree = (union mcluster *)p;