Module Name: src
Committed By: maxv
Date: Thu Mar 28 18:12:24 UTC 2019
Modified Files:
src/sys/kern: subr_pool.c vfs_init.c
Log Message:
Move pnbuf_cache into vfs_init.c, where it belongs.
To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 src/sys/kern/subr_pool.c
cvs rdiff -u -r1.48 -r1.49 src/sys/kern/vfs_init.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_pool.c
diff -u src/sys/kern/subr_pool.c:1.245 src/sys/kern/subr_pool.c:1.246
--- src/sys/kern/subr_pool.c:1.245 Wed Mar 27 18:27:46 2019
+++ src/sys/kern/subr_pool.c Thu Mar 28 18:12:24 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.245 2019/03/27 18:27:46 maxv Exp $ */
+/* $NetBSD: subr_pool.c,v 1.246 2019/03/28 18:12:24 maxv Exp $ */
/*
* Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015, 2018
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.245 2019/03/27 18:27:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.246 2019/03/28 18:12:24 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -233,8 +233,6 @@ static struct pool pcg_large_pool;
static struct pool cache_pool;
static struct pool cache_cpu_pool;
-pool_cache_t pnbuf_cache; /* pathname buffer cache */
-
/* List of all caches. */
TAILQ_HEAD(,pool_cache) pool_cache_head =
TAILQ_HEAD_INITIALIZER(pool_cache_head);
Index: src/sys/kern/vfs_init.c
diff -u src/sys/kern/vfs_init.c:1.48 src/sys/kern/vfs_init.c:1.49
--- src/sys/kern/vfs_init.c:1.48 Wed May 6 15:57:08 2015
+++ src/sys/kern/vfs_init.c Thu Mar 28 18:12:24 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_init.c,v 1.48 2015/05/06 15:57:08 hannken Exp $ */
+/* $NetBSD: vfs_init.c,v 1.49 2019/03/28 18:12:24 maxv Exp $ */
/*-
* Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.48 2015/05/06 15:57:08 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.49 2019/03/28 18:12:24 maxv Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -94,6 +94,8 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v
#define DODEBUG(A)
#endif
+pool_cache_t pnbuf_cache;
+
/*
* The global list of vnode operations.
*/