From: Kent Overstreet Date: Mon, 21 Mar 2022 04:27:10 +0000 (-0400) Subject: bcachefs: Make minimum journal_flush_delay nonzero X-Git-Tag: v6.7-rc1~201^2~1050 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a6f4411aeaae888a7b2880f0c046f9efb0d83cc;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Make minimum journal_flush_delay nonzero We're seeing a very strange bug where journal_flush_delay sometimes gets set to 0 in the superblock. Together with the preceding patch, this should help us track it down. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 69ca754299431..b45740ec3c673 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -275,7 +275,7 @@ enum opt_type { NULL, "Extra debugging information during mount/recovery")\ x(journal_flush_delay, u32, \ OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ - OPT_UINT(0, U32_MAX), \ + OPT_UINT(1, U32_MAX), \ BCH_SB_JOURNAL_FLUSH_DELAY, 1000, \ NULL, "Delay in milliseconds before automatic journal commits")\ x(journal_flush_disabled, u8, \