diff options
author | 2024-08-21 22:27:45 -0400 | |
---|---|---|
committer | 2024-08-22 02:07:23 -0400 | |
commit | 7f2de6947f92cfa4be8e5eaa1237e962bb8ee65f (patch) | |
tree | 85408e1e12a2731b7f6e5f814f13dc81d3480e05 | |
parent | fs/super.c: improve get_tree() error message (diff) | |
download | wireguard-linux-7f2de6947f92cfa4be8e5eaa1237e962bb8ee65f.tar.xz wireguard-linux-7f2de6947f92cfa4be8e5eaa1237e962bb8ee65f.zip |
bcachefs: Fix warning in bch2_fs_journal_stop()
j->last_empty_seq needs to match j->seq when the journal is empty
Reported-by: syzbot+4093905737cf289b6b38@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 649e3a01608a..f5f7db50ca31 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -1260,7 +1260,7 @@ int bch2_fs_journal_start(struct journal *j, u64 cur_seq) } if (!had_entries) - j->last_empty_seq = cur_seq; + j->last_empty_seq = cur_seq - 1; /* to match j->seq */ spin_lock(&j->lock); |