Skip to content

Commit 7f2de69

Browse files
author
Kent Overstreet
committed
bcachefs: Fix warning in bch2_fs_journal_stop()
j->last_empty_seq needs to match j->seq when the journal is empty Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
1 parent 06f6743 commit 7f2de69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ int bch2_fs_journal_start(struct journal *j, u64 cur_seq)
12601260
}
12611261

12621262
if (!had_entries)
1263-
j->last_empty_seq = cur_seq;
1263+
j->last_empty_seq = cur_seq - 1; /* to match j->seq */
12641264

12651265
spin_lock(&j->lock);
12661266

0 commit comments

Comments
 (0)