bcachefs: Fix journal_buf_realloc()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 4 Jan 2021 20:46:57 +0000 (15:46 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:50 +0000 (17:08 -0400)
commitc859430b1728d59ca6e4d7e9356db82979e2fd5b
tree6868ea5d3403729f20021a752ba53e3b754b7ef8
parent07a1006ae81580c6a1b52b80e32fa9dadea1954b
bcachefs: Fix journal_buf_realloc()

It used to be safe to reallocate a buf that the write path owns without
holding the journal lock, but now this can trigger an assertion in
journal_seq_to_buf().

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