Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/uvm a patch supposed to unbreak abi from christos@
details: https://anonhg.NetBSD.org/src/rev/bd1a3a4b56ae
branches: yamt-pagecache
changeset: 770828:bd1a3a4b56ae
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Nov 13 01:36:25 2011 +0000
description:
a patch supposed to unbreak abi from christos@
PR/45598
diffstat:
sys/uvm/uvm_meter.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e977c0033892 -r bd1a3a4b56ae sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c Sun Nov 13 01:18:02 2011 +0000
+++ b/sys/uvm/uvm_meter.c Sun Nov 13 01:36:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_meter.c,v 1.56.4.2 2011/11/12 02:54:04 yamt Exp $ */
+/* $NetBSD: uvm_meter.c,v 1.56.4.3 2011/11/13 01:36:25 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.56.4.2 2011/11/12 02:54:04 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.56.4.3 2011/11/13 01:36:25 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -191,6 +191,8 @@
node = *rnode;
node.sysctl_data = &u;
node.sysctl_size = sizeof(u);
+ if (oldp)
+ node.sysctl_size = min(*oldlenp, node.sysctl_size);
return (sysctl_lookup(SYSCTLFN_CALL(&node)));
}
Home |
Main Index |
Thread Index |
Old Index