Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a6aba85 authored by Wanpeng Li's avatar Wanpeng Li Committed by Greg Kroah-Hartman
Browse files

staging: ramster/debug: Add CONFIG_RAMSTER_DEBUG Kconfig entry



Add CONFIG_RAMSTER_DEBUG Kconfig entry.

Acked-by: default avatarDan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: default avatarWanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7d751ff
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
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
+1 −1
Original line number Diff line number Diff line
#include <linux/bug.h>

#ifdef CONFIG_RAMSTER
#ifdef CONFIG_RAMSTER_DEBUG

extern long ramster_flnodes;
static atomic_t ramster_flnodes_atomic = ATOMIC_INIT(0);