]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: journal write path comment
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Mar 2025 17:00:56 +0000 (12:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c

index a510755a8364e45d81f860c2e23d10f88ccd544f..331c9d762439850606e44ab8b701507c27429391 100644 (file)
@@ -1813,6 +1813,10 @@ static CLOSURE_CALLBACK(journal_write_preflush)
        struct journal *j = container_of(w, struct journal, buf[w->idx]);
        struct bch_fs *c = container_of(j, struct bch_fs, journal);
 
+       /*
+        * Wait for previous journal writes to comelete; they won't necessarily
+        * be flushed if they're still in flight
+        */
        if (j->seq_ondisk + 1 != le64_to_cpu(w->data->seq)) {
                spin_lock(&j->lock);
                if (j->seq_ondisk + 1 != le64_to_cpu(w->data->seq)) {