mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
bcachefs: fix a faulty assertion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
812af308de
commit
db6447b383
1 changed files with 2 additions and 2 deletions
|
@ -248,13 +248,13 @@ static int journal_entry_open(struct journal *j)
|
|||
do {
|
||||
old.v = new.v = v;
|
||||
|
||||
EBUG_ON(journal_state_count(new, new.idx));
|
||||
|
||||
if (old.cur_entry_offset == JOURNAL_ENTRY_ERROR_VAL)
|
||||
return -EROFS;
|
||||
|
||||
/* Handle any already added entries */
|
||||
new.cur_entry_offset = le32_to_cpu(buf->data->u64s);
|
||||
|
||||
EBUG_ON(journal_state_count(new, new.idx));
|
||||
journal_state_inc(&new);
|
||||
} while ((v = atomic64_cmpxchg(&j->reservations.counter,
|
||||
old.v, new.v)) != old.v);
|
||||
|
|
Loading…
Reference in a new issue