From owner-cvs-all Sat Mar 17 15:23:29 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E156B37B718; Sat, 17 Mar 2001 15:23:25 -0800 (PST) (envelope-from bmilekic@FreeBSD.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2HNNPs72845; Sat, 17 Mar 2001 15:23:25 -0800 (PST) (envelope-from bmilekic) Message-Id: <200103172323.f2HNNPs72845@freefall.freebsd.org> From: Bosko Milekic Date: Sat, 17 Mar 2001 15:23:25 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_mbuf.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bmilekic 2001/03/17 15:23:25 PST Modified files: sys/kern uipc_mbuf.c Log: Fix a couple of things in the internal mbuf allocation interface: - Make sure that m_mballoc() really doesn't allow over nmbufs mbufs to be allocated from mb_map. In the case where nmbufs-reserved space is not an exact multiple of PAGE_SIZE (which it should be, but anyway...), we hold nmbufs as an absolute maximum which need not ever be reached. - Clean up m_clalloc(); make it more consistent in the sense that the first argument `ncl' really means "the number of clusters ensured to be allocated" and not "the number of pages worth of clusters to be allocated," as was previously the case. This also makes it consistent with m_mballoc() as well as the comment that preceeds it. Reviewed by: jlemon Revision Changes Path 1.70 +9 -9 src/sys/kern/uipc_mbuf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message