bcachefs: Fix journal_flush_done()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 26 Feb 2022 03:14:35 +0000 (22:14 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:25 +0000 (17:09 -0400)
commitcb598111836fbca03b1353a6238cde8a66e5ddf0
tree4767a2c7c93eb85e1a4a67a6ad189e45047af7a7
parentfa8e94faeece12c20b541f647059f29867e98bc0
bcachefs: Fix journal_flush_done()

journal_flush_done() was overwriting did_work, thus occasionally
returning false when it did do work and occasional assertions in the
shutdown sequence because we didn't completely flush the key cache.

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