bcachefs: Reset journal flush delay to default value if zeroed
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 21 Mar 2022 07:03:03 +0000 (03:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:28 +0000 (17:09 -0400)
commitb8559f1a212a7035b430b83e0a01e94a872adc23
tree3c9287001560b6c210a491d27c5cefb6b2b556f5
parentb0be2fcfb425022025203c27ed75a20db8c6feda
bcachefs: Reset journal flush delay to default value if zeroed

We've been seeing a very strange bug where journal flush & reclaim delay
end up getting inexplicably zeroed, in the superblock. We're now
validating all the options in bch2_validate_super(), and 0 is no longer
a valid value for those options, but we need to be careful not to
prevent people's filesystems from mounting because of the new
validation.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/super-io.c