diff options
-rw-r--r-- | fs/bcachefs/journal_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index ce339876f80d..6e1b5fccbd92 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -1204,6 +1204,7 @@ static void journal_write_done(struct closure *cl) struct bch_devs_list devs = bch2_extent_devs(bkey_i_to_s_c_extent(&w->key)); u64 seq = le64_to_cpu(w->data->seq); + u64 last_seq = le64_to_cpu(w->data->last_seq); if (!devs.nr) { bch_err(c, "unable to write journal to sufficient devices"); @@ -1216,7 +1217,7 @@ out: bch2_time_stats_update(j->write_time, j->write_start_time); spin_lock(&j->lock); - j->last_seq_ondisk = seq; + j->last_seq_ondisk = last_seq; if (seq >= j->pin.front) journal_seq_pin(j, seq)->devs = devs; |