]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix incorrect multiple dev check in journal write path
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 May 2025 00:37:50 +0000 (20:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 05:21:12 +0000 (01:21 -0400)
commit813825d24135aa3109cf7746ce11f1ec2ab901fd
tree8fd225d0ae5aaf6a2331f535788b377ee7031d14
parent327971cef509c6380ed4bd8587fad26ceb2ab90b
bcachefs: Fix incorrect multiple dev check in journal write path

It's uncomon to have multiple devices with journalling only on a subset,
but can be specified with the 'data_allowed' option. We need to know if
we're doing data/metadata writes to multiple devices, as that requires
issuing flushes before the journal writes.

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