Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Localify mcl_cache.



details:   https://anonhg.NetBSD.org/src/rev/419b6a035383
branches:  trunk
changeset: 363723:419b6a035383
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Aug 09 17:43:54 2018 +0000

description:
Localify mcl_cache.

diffstat:

 sys/kern/uipc_mbuf.c |  6 +++---
 sys/sys/mbuf.h       |  3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 9e688847301c -r 419b6a035383 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Thu Aug 09 17:32:44 2018 +0000
+++ b/sys/kern/uipc_mbuf.c      Thu Aug 09 17:43:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.217 2018/07/18 07:06:40 msaitoh Exp $  */
+/*     $NetBSD: uipc_mbuf.c,v 1.218 2018/08/09 17:43:55 maxv Exp $     */
 
 /*
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.217 2018/07/18 07:06:40 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.218 2018/08/09 17:43:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -89,7 +89,7 @@
 #include <net/if.h>
 
 pool_cache_t mb_cache; /* mbuf cache */
-pool_cache_t mcl_cache;        /* mbuf cluster cache */
+static pool_cache_t mcl_cache; /* mbuf cluster cache */
 
 struct mbstat mbstat;
 int max_linkhdr;
diff -r 9e688847301c -r 419b6a035383 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Thu Aug 09 17:32:44 2018 +0000
+++ b/sys/sys/mbuf.h    Thu Aug 09 17:43:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.208 2018/07/17 05:52:07 msaitoh Exp $       */
+/*     $NetBSD: mbuf.h,v 1.209 2018/08/09 17:43:54 maxv Exp $  */
 
 /*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -773,7 +773,6 @@
 extern const int msize;                        /* mbuf base size */
 extern const int mclbytes;             /* mbuf cluster size */
 extern pool_cache_t mb_cache;
-extern pool_cache_t mcl_cache;
 #ifdef MBUFTRACE
 LIST_HEAD(mownerhead, mowner);
 extern struct mownerhead mowners;



Home | Main Index | Thread Index | Old Index