Skip to content

Commit b4d6e20

Browse files
author
Kent Overstreet
committed
bcachefs: Fix triggering of discard by the journal path
It becomes possible to do discards after a journal flush, which naturally the journal code is reponsible for. A prior refactoring seems to have broken this - which went unnoticed because the foreground allocator path can also trigger discards. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 3079294 commit b4d6e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/journal_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,7 @@ static CLOSURE_CALLBACK(journal_write_done)
17671767

17681768
closure_wake_up(&c->freelist_wait);
17691769
bch2_reset_alloc_cursors(c);
1770+
do_discards = true;
17701771
}
17711772

17721773
j->seq_ondisk = seq;

0 commit comments

Comments
 (0)