diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-07 07:25:12 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:56 -0400 |
commit | adac06fad3333f9b9638ad9271346065d69e9c79 (patch) | |
tree | 898bc40613cfcd3d46a4e6830e35b770e374ab63 /fs/bcachefs/opts.h | |
parent | db64a8e8a1688f70bdb254aed704f48a76dc7a7e (diff) | |
download | linux-adac06fad3333f9b9638ad9271346065d69e9c79.tar.gz linux-adac06fad3333f9b9638ad9271346065d69e9c79.tar.bz2 linux-adac06fad3333f9b9638ad9271346065d69e9c79.zip |
bcachefs: Verbose on by default when CONFIG_BCACHEFS_DEBUG=y
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index afbf82d62977..719693b333da 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -92,6 +92,12 @@ enum opt_type { #define RATELIMIT_ERRORS_DEFAULT false #endif +#ifdef CONFIG_BCACHEFS_DEBUG +#define BCACHEFS_VERBOSE_DEFAULT true +#else +#define BCACHEFS_VERBOSE_DEFAULT false +#endif + #define BCH_OPTS() \ x(block_size, u16, \ OPT_FS|OPT_FORMAT| \ @@ -276,7 +282,7 @@ enum opt_type { x(verbose, u8, \ OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ OPT_BOOL(), \ - BCH2_NO_SB_OPT, false, \ + BCH2_NO_SB_OPT, BCACHEFS_VERBOSE_DEFAULT, \ NULL, "Extra debugging information during mount/recovery")\ x(journal_flush_delay, u32, \ OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ |