bcachefs: Fix journal shutdown path

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-05-10 11:58:00 -04:00 committed by Kent Overstreet
parent 75812e70d9
commit 1f7d45beb7

View file

@ -959,6 +959,8 @@ void bch2_fs_journal_stop(struct journal *j)
{
struct bch_fs *c = container_of(j, struct bch_fs, journal);
bch2_journal_flush_all_pins(j);
wait_event(j->wait, journal_entry_close(j));
/* do we need to write another journal entry? */