diff options
author | phk <phk@FreeBSD.org> | 1996-05-02 14:21:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-02 14:21:14 +0000 |
commit | 5a6fb3a7da69f11fbe5093f4a2cc7a4d86df5b36 (patch) | |
tree | c11aef2f7af5663393e978cd03a223a2ffbe6c69 /sys/kern/uipc_mbuf.c | |
parent | 189514aa416a464e44c25c45746e8ed5e850f03d (diff) | |
download | FreeBSD-src-5a6fb3a7da69f11fbe5093f4a2cc7a4d86df5b36.zip FreeBSD-src-5a6fb3a7da69f11fbe5093f4a2cc7a4d86df5b36.tar.gz |
removed:
CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei()
ptei() kvtopte() ptetov() ispt() ptetoav() &c &c
new:
NPDEPG
Major macro cleanup.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index cb79083..1272bed 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 - * $Id: uipc_mbuf.c,v 1.16 1995/12/07 12:46:59 davidg Exp $ + * $Id: uipc_mbuf.c,v 1.17 1995/12/14 08:32:06 phk Exp $ */ #include <sys/param.h> @@ -71,8 +71,8 @@ mbinit(dummy) { int s; -#if CLBYTES < 4096 -#define NCL_INIT (4096/CLBYTES) +#if PAGE_SIZE < 4096 +#define NCL_INIT (4096/PAGE_SIZE) #else #define NCL_INIT 1 #endif @@ -108,7 +108,7 @@ m_clalloc(ncl, nowait) if (mb_map_full) return (0); - npg = ncl * CLSIZE; + npg = ncl; p = (caddr_t)kmem_malloc(mb_map, ctob(npg), nowait ? M_NOWAIT : M_WAITOK); /* @@ -118,7 +118,7 @@ m_clalloc(ncl, nowait) if (p == NULL) return (0); - 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; |