mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
jbd2: use module parameters instead of debugfs for jbd_debug
There are multiple reasons to move away from debugfs. First of all, we are only using it for a single parameter, and it is much more complicated to set up (some 30 lines of code compared to 3), and one more thing that might fail while loading the jbd2 module. Secondly, as a module paramter it can be specified as a boot option if jbd2 is built into the kernel, or as a parameter when the module is loaded, and it can also be manipulated dynamically under /sys/module/jbd2/parameters/jbd2_debug. So it is more flexible. Ultimately we want to move away from using jbd_debug() towards tracepoints, but for now this is still a useful simplification of the code base. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
a0b30c1229
commit
b6e96d0067
2 changed files with 9 additions and 44 deletions
|
@ -20,7 +20,6 @@
|
|||
#ifndef __KERNEL__
|
||||
#include "jfs_compat.h"
|
||||
#define JBD2_DEBUG
|
||||
#define jfs_debug jbd_debug
|
||||
#else
|
||||
|
||||
#include <linux/types.h>
|
||||
|
@ -57,7 +56,7 @@
|
|||
* CONFIG_JBD2_DEBUG is on.
|
||||
*/
|
||||
#define JBD2_EXPENSIVE_CHECKING
|
||||
extern u8 jbd2_journal_enable_debug;
|
||||
extern ushort jbd2_journal_enable_debug;
|
||||
|
||||
#define jbd_debug(n, f, a...) \
|
||||
do { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue