linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 08/24] nilfs2: introduce GC subsystem debugging output option
@ 2013-06-17 12:23 Vyacheslav Dubeyko
  0 siblings, 0 replies; only message in thread
From: Vyacheslav Dubeyko @ 2013-06-17 12:23 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Ryusuke Konishi, Linux FS Devel

From: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
Subject: [PATCH 08/24] nilfs2: introduce GC subsystem debugging output option

This patch adds subsystem's flags for gcinode.c module.
Flags for these modules are grouped by CONFIG_NILFS2_DEBUG_GC_SUBSYSTEM
kernel configuration option. This kernel configuration option enables
(or disables) debugging output from of all above-mentioned modules.

Signed-off-by: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
CC: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
---
 fs/nilfs2/Kconfig |    6 ++++++
 fs/nilfs2/debug.h |    9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig
index 91ae8b3..465b9aa 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
@@ -67,6 +67,12 @@ config NILFS2_DEBUG_SEGMENTS_SUBSYSTEM
 	  This option enables debugging output in segbuf.c, segment.c
 	  modules.
 
+config NILFS2_DEBUG_GC_SUBSYSTEM
+	bool "Enable GC subsystem debugging output"
+	default n
+	help
+	  This option enables debugging output in gcinode.c module.
+
 endif # NILFS2_DEBUG_SUBSYSTEMS
 
 endif # NILFS2_DEBUG
diff --git a/fs/nilfs2/debug.h b/fs/nilfs2/debug.h
index e2e619e..ae00e9b 100644
--- a/fs/nilfs2/debug.h
+++ b/fs/nilfs2/debug.h
@@ -59,6 +59,12 @@
 #define DBG_SEGBUF	0x00002000
 #define DBG_SEGMENT	0x00004000
 
+/*
+ * These flags enable debugging output in modules that
+ * implement GC subsystem functionality (gcinode.c).
+ */
+#define DBG_GCINODE	0x00008000
+
 #ifdef CONFIG_NILFS2_DEBUG
 
 /* Definition of flags' set for debugging */
@@ -74,6 +80,9 @@ static u32 DBG_MASK = (
 #ifdef CONFIG_NILFS2_DEBUG_SEGMENTS_SUBSYSTEM
 	DBG_SEGBUF | DBG_SEGMENT |
 #endif /* CONFIG_NILFS2_DEBUG_SEGMENTS_SUBSYSTEM */
+#ifdef CONFIG_NILFS2_DEBUG_GC_SUBSYSTEM
+	DBG_GCINODE | DBG_IOCTL |
+#endif /* CONFIG_NILFS2_DEBUG_GC_SUBSYSTEM */
 	0);
 
 #define NILFS2_SUBSYS_MASK	0x0FFFFFFF
-- 
1.7.9.5



--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-17 12:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17 12:23 [PATCH 08/24] nilfs2: introduce GC subsystem debugging output option Vyacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).