aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-18 09:12:26 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-21 09:38:21 +0000
commit750ea20d3fb143a95ccf3ff84cfbe86cce9b9cac (patch)
treebbdc89557d2c4d5ac8d14842fa1552a57f1c7ac9
parente6bb49f12ca7a2dc103d69d4c70e1504195f70a6 (diff)
downloadsrc-750ea20d3fb143a95ccf3ff84cfbe86cce9b9cac.tar.gz
src-750ea20d3fb143a95ccf3ff84cfbe86cce9b9cac.zip
Delete dead CLUSTERDEBUG config option.
Reviewed by: mckusick Tested by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28679
-rw-r--r--sys/conf/NOTES3
-rw-r--r--sys/conf/options1
-rw-r--r--sys/kern/vfs_cluster.c8
3 files changed, 0 insertions, 12 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index b4202bb65618..f73b5a466366 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -2732,9 +2732,6 @@ options NSWBUF_MIN=120
options CAM_DEBUG_DELAY
-# VFS cluster debugging.
-options CLUSTERDEBUG
-
options DEBUG
# Kernel filelock debugging.
diff --git a/sys/conf/options b/sys/conf/options
index 2f324143c574..b6956193d841 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -570,7 +570,6 @@ TI_JUMBO_HDRSPLIT opt_ti.h
# Misc debug flags. Most of these should probably be replaced with
# 'DEBUG', and then let people recompile just the interesting modules
# with 'make CC="cc -DDEBUG"'.
-CLUSTERDEBUG opt_debug_cluster.h
DEBUG_1284 opt_ppb_1284.h
LPT_DEBUG opt_lpt.h
PLIP_DEBUG opt_plip.h
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 6b77adf5df34..60f22fd38764 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -36,8 +36,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_debug_cluster.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -56,12 +54,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_page.h>
#include <sys/sysctl.h>
-#if defined(CLUSTERDEBUG)
-static int rcluster= 0;
-SYSCTL_INT(_debug, OID_AUTO, rcluster, CTLFLAG_RW, &rcluster, 0,
- "Debug VFS clustering code");
-#endif
-
static MALLOC_DEFINE(M_SEGMENT, "cl_savebuf", "cluster_save buffer");
static uma_zone_t cluster_pbuf_zone;