]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Conditionalize PG_CACHE sysctls on COMPAT_FREEBSD11.
authormarkj <markj@FreeBSD.org>
Fri, 9 Dec 2016 18:55:27 +0000 (18:55 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 9 Dec 2016 18:55:27 +0000 (18:55 +0000)
Reviewed by: glebius, imp, jhb
Differential Revision: https://reviews.freebsd.org/D8736

sys/vm/vm_meter.c

index d85777f6b53e2cf4723d56f36d5db88267607bb1..941059ab6ce9d233237da5ae3a0bfd2e0d7d801d 100644 (file)
@@ -32,6 +32,8 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+#include "opt_compat.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -315,7 +317,7 @@ VM_STATS_VM(v_vforkpages, "VM pages affected by vfork()");
 VM_STATS_VM(v_rforkpages, "VM pages affected by rfork()");
 VM_STATS_VM(v_kthreadpages, "VM pages affected by fork() by kernel");
 
-#ifndef BURN_BRIDGES
+#ifdef COMPAT_FREEBSD11
 /*
  * Provide compatibility sysctls for the benefit of old utilities which exit
  * with an error if they cannot be found.