提交 765f8361 编写于 作者: Y Yin Kangkai 提交者: Jan Kara

jbd: jbd-debug and jbd2-debug should be writable

jbd-debug and jbd2-debug is currently read-only (S_IRUGO), which is not
correct. Make it writable so that we can start debuging.
Signed-off-by: NYin Kangkai <kangkai.yin@intel.com>
Reviewed-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 39bc680a
...@@ -1913,7 +1913,7 @@ static void __init jbd_create_debugfs_entry(void) ...@@ -1913,7 +1913,7 @@ static void __init jbd_create_debugfs_entry(void)
{ {
jbd_debugfs_dir = debugfs_create_dir("jbd", NULL); jbd_debugfs_dir = debugfs_create_dir("jbd", NULL);
if (jbd_debugfs_dir) if (jbd_debugfs_dir)
jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO, jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO | S_IWUSR,
jbd_debugfs_dir, jbd_debugfs_dir,
&journal_enable_debug); &journal_enable_debug);
} }
......
...@@ -2115,7 +2115,8 @@ static void __init jbd2_create_debugfs_entry(void) ...@@ -2115,7 +2115,8 @@ static void __init jbd2_create_debugfs_entry(void)
{ {
jbd2_debugfs_dir = debugfs_create_dir("jbd2", NULL); jbd2_debugfs_dir = debugfs_create_dir("jbd2", NULL);
if (jbd2_debugfs_dir) if (jbd2_debugfs_dir)
jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME, S_IRUGO, jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME,
S_IRUGO | S_IWUSR,
jbd2_debugfs_dir, jbd2_debugfs_dir,
&jbd2_journal_enable_debug); &jbd2_journal_enable_debug);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册