Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2016 18:55:27 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309750 - head/sys/vm
Message-ID:  <201612091855.uB9ItRhB011786@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Dec  9 18:55:27 2016
New Revision: 309750
URL: https://svnweb.freebsd.org/changeset/base/309750

Log:
  Conditionalize PG_CACHE sysctls on COMPAT_FREEBSD11.
  
  Reviewed by:	glebius, imp, jhb
  Differential Revision:	https://reviews.freebsd.org/D8736

Modified:
  head/sys/vm/vm_meter.c

Modified: head/sys/vm/vm_meter.c
==============================================================================
--- head/sys/vm/vm_meter.c	Fri Dec  9 18:54:12 2016	(r309749)
+++ head/sys/vm/vm_meter.c	Fri Dec  9 18:55:27 2016	(r309750)
@@ -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 affe
 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612091855.uB9ItRhB011786>