bcachefs: Fix journal write error path
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 28 May 2021 03:16:25 +0000 (23:16 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:04 +0000 (17:09 -0400)
commitd797ca3d8ed3b493d6558426fb4b4980ff186c37
tree13d3b6099cd86e774510cd7061d791660e0e0800
parent9eba7c8d15ce236b8033ae1f50fc1168984a507b
bcachefs: Fix journal write error path

Journal write errors were racing with the submission path - potentially
causing writes to other replicas to not get submitted.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_io.c
fs/bcachefs/journal_types.h