summaryrefslogtreecommitdiff
path: root/libbcachefs/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/journal.c')
-rw-r--r--libbcachefs/journal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbcachefs/journal.c b/libbcachefs/journal.c
index 3ec80437..0a174dff 100644
--- a/libbcachefs/journal.c
+++ b/libbcachefs/journal.c
@@ -963,6 +963,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? */