projects
/
users
/
dwmw2
/
linux.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06f6743
)
bcachefs: Fix warning in bch2_fs_journal_stop()
author
Kent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 02:27:45 +0000
(22:27 -0400)
committer
Kent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:07:23 +0000
(
02:07
-0400)
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>
fs/bcachefs/journal.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/journal.c
b/fs/bcachefs/journal.c
index 649e3a01608af408d70f6b2f498f01255589f70c..f5f7db50ca310c3a5d8fc39f25925f516230bc6d 100644
(file)
--- 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);