bcachefs: Fix bch2_journal_flush_device_pins()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 18 Feb 2024 01:38:47 +0000 (20:38 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Feb 2024 01:46:48 +0000 (20:46 -0500)
commit097471f9e458dbbe41e25394c1fb1ccd751f0bee
treecdec5bffb7bc6e528d74bd7b7ac2ecae8aff34f2
parentb58b1b883b9b702e25204dbe2b221eecc8ecd159
bcachefs: Fix bch2_journal_flush_device_pins()

If a journal write errored, the list of devices it was written to could
be empty - we're not supposed to mark an empty replicas list.

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