diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-28 21:56:57 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-13 21:22:25 -0400 |
commit | 7efa287526f02a54a0a9abf358e15623c5b09f93 (patch) | |
tree | bfb761de4a695b847d95a39007fd26e8de73860c /fs/bcachefs/journal_io.c | |
parent | 79162e829b5e5859409736b19daa2f6d2d1e0b59 (diff) | |
download | linux-stable-7efa287526f02a54a0a9abf358e15623c5b09f93.tar.gz linux-stable-7efa287526f02a54a0a9abf358e15623c5b09f93.tar.bz2 linux-stable-7efa287526f02a54a0a9abf358e15623c5b09f93.zip |
bcachefs: Fix bch2_journal_noflush_seq()
Improved journal pipelining broke journal_noflush_seq(); it implicitly
assumed only the oldest outstanding journal buf could be in flight, but
that's no longer true.
Make this more straightforward by just setting buf->must_flush whenever
we know a journal buf is going to be flush.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 34af25f286aa..0b49b2383d82 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -1936,6 +1936,7 @@ static int bch2_journal_write_pick_flush(struct journal *j, struct journal_buf * j->nr_noflush_writes++; } else { + w->must_flush = true; j->last_flush_write = jiffies; j->nr_flush_writes++; clear_bit(JOURNAL_NEED_FLUSH_WRITE, &j->flags); |