linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vyacheslav Dubeyko <slava@dubeyko.com>
To: linux-nilfs@vger.kernel.org
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>,
	Linux FS Devel <linux-fsdevel@vger.kernel.org>
Subject: [PATCH 10/24] nilfs2: introduce recovery subsystem debugging output option
Date: Mon, 17 Jun 2013 16:24:06 +0400	[thread overview]
Message-ID: <1371471846.2075.141.camel@slavad-ubuntu> (raw)

From: Vyacheslav Dubeyko <slava@dubeyko.com>
Subject: [PATCH 10/24] nilfs2: introduce recovery subsystem debugging output option

This patch adds subsystem's flags for recovery.c module.
Flags for these modules are grouped by CONFIG_NILFS2_DEBUG_RECOVERY_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@dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
---
 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 465b9aa..5eb5140 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
@@ -73,6 +73,12 @@ config NILFS2_DEBUG_GC_SUBSYSTEM
 	help
 	  This option enables debugging output in gcinode.c module.
 
+config NILFS2_DEBUG_RECOVERY_SUBSYSTEM
+	bool "Enable recovery subsystem debugging output"
+	default n
+	help
+	  This option enables debugging output in recovery.c module.
+
 endif # NILFS2_DEBUG_SUBSYSTEMS
 
 endif # NILFS2_DEBUG
diff --git a/fs/nilfs2/debug.h b/fs/nilfs2/debug.h
index ae00e9b..538726d 100644
--- a/fs/nilfs2/debug.h
+++ b/fs/nilfs2/debug.h
@@ -65,6 +65,12 @@
  */
 #define DBG_GCINODE	0x00008000
 
+/*
+ * These flags enable debugging output in modules that
+ * implement recovery subsystem functionality (recovery.c).
+ */
+#define DBG_RECOVERY	0x00010000
+
 #ifdef CONFIG_NILFS2_DEBUG
 
 /* Definition of flags' set for debugging */
@@ -83,6 +89,9 @@ static u32 DBG_MASK = (
 #ifdef CONFIG_NILFS2_DEBUG_GC_SUBSYSTEM
 	DBG_GCINODE | DBG_IOCTL |
 #endif /* CONFIG_NILFS2_DEBUG_GC_SUBSYSTEM */
+#ifdef CONFIG_NILFS2_DEBUG_RECOVERY_SUBSYSTEM
+	DBG_RECOVERY |
+#endif /* CONFIG_NILFS2_DEBUG_RECOVERY_SUBSYSTEM */
 	0);
 
 #define NILFS2_SUBSYS_MASK	0x0FFFFFFF
-- 
1.7.9.5




                 reply	other threads:[~2013-06-17 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1371471846.2075.141.camel@slavad-ubuntu \
    --to=slava@dubeyko.com \
    --cc=konishi.ryusuke@lab.ntt.co.jp \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nilfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).