]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: ramster/debug: Add CONFIG_RAMSTER_DEBUG Kconfig entry
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Sat, 13 Apr 2013 13:01:30 +0000 (21:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2013 13:27:09 +0000 (06:27 -0700)
Add CONFIG_RAMSTER_DEBUG Kconfig entry.

Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/Kconfig
drivers/staging/zcache/Makefile
drivers/staging/zcache/ramster/debug.h

index c3b8a10e170fff2285977637e4d8f0ec31eafb73..05e87a1e5d93ca8d76d3b8e6b3e637ece1bce21e 100644 (file)
@@ -33,6 +33,14 @@ config RAMSTER
          zcache2, compresses swap pages into local RAM, but then remotifies
          the compressed pages to another node in the RAMster cluster.
 
+config RAMSTER_DEBUG
+        bool "Enable ramster debug statistics"
+        depends on DEBUG_FS && RAMSTER
+        default n
+        help
+          This is used to provide an debugfs directory with counters of
+          how ramster is doing. You probably want to set this to 'N'.
+
 # Depends on not-yet-upstreamed mm patches to export end_swap_bio_write and
 # __add_to_swap_cache, and implement __swap_writepage (which is swap_writepage
 # without the frontswap call. When these are in-tree, the dependency on
index 4956fa025a01823d20a4790b0d9757506530616f..845a5c2721b530ffb8028c1470d5491c5c30e8fc 100644 (file)
@@ -1,6 +1,6 @@
 zcache-y       :=              zcache-main.o tmem.o zbud.o
 zcache-$(CONFIG_ZCACHE_DEBUG) += debug.o
-zcache-$(CONFIG_RAMSTER) += ramster/debug.o
+zcache-$(CONFIG_RAMSTER_DEBUG) += ramster/debug.o
 zcache-$(CONFIG_RAMSTER)       +=      ramster/ramster.o ramster/r2net.o
 zcache-$(CONFIG_RAMSTER)       +=      ramster/nodemanager.o ramster/tcp.o
 zcache-$(CONFIG_RAMSTER)       +=      ramster/heartbeat.o ramster/masklog.o
index 4428c79e67f38511671d50b154f2682a1d07667b..5ffab50807d81a5ab6947680523c31b66c854fc7 100644 (file)
@@ -1,6 +1,6 @@
 #include <linux/bug.h>
 
-#ifdef CONFIG_RAMSTER
+#ifdef CONFIG_RAMSTER_DEBUG
 
 extern long ramster_flnodes;
 static atomic_t ramster_flnodes_atomic = ATOMIC_INIT(0);