VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Yin Kangkai <kangkai.yin@intel.com> 2009-12-15 14:48:25 -0800 committer: Jan Kara <jack@suse.cz> 2009-12-23 13:44:13 +0100 commit: 765f8361902d015c864d5e62019b2f139452d7ef parent: 39bc680a8160bb9d6743f7873b535d553ff61058
Commit Summary:
jbd: jbd-debug and jbd2-debug should be writable
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index b7ca3a92a4db..17af879e6e9e 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -2115,7 +2115,8 @@ static void __init jbd2_create_debugfs_entry(void)
 {
 	jbd2_debugfs_dir = debugfs_create_dir("jbd2", NULL);
 	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_journal_enable_debug);
 }