[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZphqHm15yNggNdF-@inml.grue.cc>
Date: Thu, 18 Jul 2024 11:04:30 +1000
From: AP <lkml@...l.grue.cc>
To: Camila Alvarez <cam.alvarez.i@...il.com>
Cc: Kent Overstreet <kent.overstreet@...ux.dev>,
syzbot+4093905737cf289b6b38@...kaller.appspotmail.com,
Brian Foster <bfoster@...hat.com>, linux-bcachefs@...r.kernel.org,
linux-kernel@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH] bcachefs: WARNING in bch2_fs_journal_stop
On Wed, Jul 17, 2024 at 06:02:39PM -0400, Camila Alvarez wrote:
> diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c
> index 10b19791ec98..7bbbf4b149e9 100644
> --- a/fs/bcachefs/journal.c
> +++ b/fs/bcachefs/journal.c
> @@ -1201,7 +1201,7 @@ int bch2_fs_journal_start(struct journal *j, u64 cur_seq)
> struct journal_replay *i, **_i;
> struct genradix_iter iter;
> bool had_entries = false;
> - u64 last_seq = cur_seq, nr, seq;
> + u64 last_written_seq = cur_seq - 1, last_seq = cur_seq - 1, nr, seq;
Spaces not tabs. I think consistency would be wanted so should be a tab.
AP
Powered by blists - more mailing lists