diff options
author | wollman <wollman@FreeBSD.org> | 1996-05-10 19:28:55 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-05-10 19:28:55 +0000 |
commit | a28a8481af3f2a2145d2a6c164a6299934c2bb3f (patch) | |
tree | fab5023c844a9f8148e7c028b3bd0bc0cb934ed5 /sys/kern/uipc_mbuf.c | |
parent | 32706d589a389e3534278d9dec0d4dc6fbacbeca (diff) | |
download | FreeBSD-src-a28a8481af3f2a2145d2a6c164a6299934c2bb3f.zip FreeBSD-src-a28a8481af3f2a2145d2a6c164a6299934c2bb3f.tar.gz |
Allocate mbufs from a separate submap so that NMBCLUSTERS works as
expected.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 9c2d315..f742628 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.19 1996/05/06 17:18:12 phk Exp $ + * $Id: uipc_mbuf.c,v 1.20 1996/05/08 19:38:14 wollman Exp $ */ #include <sys/param.h> @@ -152,11 +152,11 @@ m_clalloc(ncl, nowait) * to get any more (nothing is ever freed back to the * map). */ - if (mb_map_full) + if (mcl_map_full) return (0); npg = ncl; - p = (caddr_t)kmem_malloc(mb_map, ctob(npg), + p = (caddr_t)kmem_malloc(mcl_map, ctob(npg), nowait ? M_NOWAIT : M_WAITOK); /* * Either the map is now full, or this is nowait and there |