Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs Finish the transition to SYSCTL_SETUP by removing...
details: https://anonhg.NetBSD.org/src/rev/098f09d9ced9
branches: trunk
changeset: 1008388:098f09d9ced9
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Mar 21 16:30:39 2020 +0000
description:
Finish the transition to SYSCTL_SETUP by removing local sysctllog
in favor of the one provided by the module infrastructure.
diffstat:
sys/miscfs/fdesc/fdesc_vfsops.c | 8 +++-----
sys/miscfs/overlay/overlay_vfsops.c | 8 +++-----
2 files changed, 6 insertions(+), 10 deletions(-)
diffs (72 lines):
diff -r 1ca8dc89afdc -r 098f09d9ced9 sys/miscfs/fdesc/fdesc_vfsops.c
--- a/sys/miscfs/fdesc/fdesc_vfsops.c Sat Mar 21 16:28:56 2020 +0000
+++ b/sys/miscfs/fdesc/fdesc_vfsops.c Sat Mar 21 16:30:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdesc_vfsops.c,v 1.94 2020/03/16 21:20:11 pgoyette Exp $ */
+/* $NetBSD: fdesc_vfsops.c,v 1.95 2020/03/21 16:30:39 pgoyette Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.94 2020/03/16 21:20:11 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.95 2020/03/21 16:30:39 pgoyette Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -68,8 +68,6 @@
VFS_PROTOS(fdesc);
-static struct sysctllog *fdesc_sysctl_log;
-
/*
* Mount the per-process file descriptors (/dev/fd)
*/
@@ -266,7 +264,7 @@
SYSCTL_SETUP(fdesc_sysctl_setup, "fdesc sysctl")
{
- sysctl_createv(&fdesc_sysctl_log, 0, NULL, NULL,
+ sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
CTLTYPE_NODE, "fdesc",
SYSCTL_DESCR("File-descriptor file system"),
diff -r 1ca8dc89afdc -r 098f09d9ced9 sys/miscfs/overlay/overlay_vfsops.c
--- a/sys/miscfs/overlay/overlay_vfsops.c Sat Mar 21 16:28:56 2020 +0000
+++ b/sys/miscfs/overlay/overlay_vfsops.c Sat Mar 21 16:30:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: overlay_vfsops.c,v 1.69 2020/03/16 21:20:11 pgoyette Exp $ */
+/* $NetBSD: overlay_vfsops.c,v 1.70 2020/03/21 16:30:39 pgoyette Exp $ */
/*
* Copyright (c) 1999, 2000 National Aeronautics & Space Administration
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.69 2020/03/16 21:20:11 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.70 2020/03/21 16:30:39 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,8 +92,6 @@
VFS_PROTOS(ov);
-static struct sysctllog *overlay_sysctl_log;
-
#define NOVERLAYNODECACHE 16
/*
@@ -273,7 +271,7 @@
SYSCTL_SETUP(overlay_sysctl_setup, "overlay fs sysctl")
{
- sysctl_createv(&overlay_sysctl_log, 0, NULL, NULL,
+ sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT, CTLTYPE_NODE, "overlay",
SYSCTL_DESCR("Overlay file system"),
NULL, 0, NULL, 0,
Home |
Main Index |
Thread Index |
Old Index