Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add LIST_INIT for filehead.
details: https://anonhg.NetBSD.org/src/rev/7bf5c4addf92
branches: trunk
changeset: 445555:7bf5c4addf92
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Nov 02 12:27:47 2018 +0000
description:
Add LIST_INIT for filehead.
diffstat:
sys/kern/kern_descrip.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r ef8b9f629746 -r 7bf5c4addf92 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Fri Nov 02 11:59:59 2018 +0000
+++ b/sys/kern/kern_descrip.c Fri Nov 02 12:27:47 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.238 2018/10/05 22:12:38 christos Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.239 2018/11/02 12:27:47 maxv Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.238 2018/10/05 22:12:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.239 2018/11/02 12:27:47 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -150,6 +150,8 @@
mutex_init(&filelist_lock, MUTEX_DEFAULT, IPL_NONE);
+ LIST_INIT(&filehead);
+
file_cache = pool_cache_init(sizeof(file_t), coherency_unit, 0,
0, "file", NULL, IPL_NONE, file_ctor, file_dtor, NULL);
KASSERT(file_cache != NULL);
Home |
Main Index |
Thread Index |
Old Index