Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Expose KERN_BUFSLOP in <sys/sysctl.h>.
details: https://anonhg.NetBSD.org/src/rev/3dcd370e748b
branches: trunk
changeset: 1022531:3dcd370e748b
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Jul 24 13:28:14 2021 +0000
description:
Expose KERN_BUFSLOP in <sys/sysctl.h>.
diffstat:
sys/kern/vfs_bio.c | 5 ++---
sys/sys/sysctl.h | 4 +++-
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 1d1915776374 -r 3dcd370e748b sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Sat Jul 24 13:27:39 2021 +0000
+++ b/sys/kern/vfs_bio.c Sat Jul 24 13:28:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.299 2021/07/24 13:27:39 simonb Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.300 2021/07/24 13:28:14 simonb Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2019, 2020 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.299 2021/07/24 13:27:39 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.300 2021/07/24 13:28:14 simonb Exp $");
#ifdef _KERNEL_OPT
#include "opt_bufcache.h"
@@ -1765,7 +1765,6 @@
o->b_lblkno = i->b_lblkno;
}
-#define KERN_BUFSLOP 20
static int
sysctl_dobuf(SYSCTLFN_ARGS)
{
diff -r 1d1915776374 -r 3dcd370e748b sys/sys/sysctl.h
--- a/sys/sys/sysctl.h Sat Jul 24 13:27:39 2021 +0000
+++ b/sys/sys/sysctl.h Sat Jul 24 13:28:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.h,v 1.233 2021/04/13 01:10:24 mrg Exp $ */
+/* $NetBSD: sysctl.h,v 1.234 2021/07/24 13:28:14 simonb Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -662,6 +662,8 @@
uint64_t b_lblkno; /* DADDR_T: Logical block number */
};
+#define KERN_BUFSLOP 20
+
/*
* kern.file2 returns an array of these structures, which are designed
* both to be immune to 32/64 bit emulation issues and to
Home |
Main Index |
Thread Index |
Old Index