Commit c8296d73 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix leakage of internal error code

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 01db5e5f
...@@ -408,8 +408,10 @@ static int journal_entry_btree_root_validate(struct bch_fs *c, ...@@ -408,8 +408,10 @@ static int journal_entry_btree_root_validate(struct bch_fs *c,
return 0; return 0;
} }
return journal_validate_key(c, jset, entry, 1, entry->btree_id, k, ret = journal_validate_key(c, jset, entry, 1, entry->btree_id, k,
version, big_endian, flags); version, big_endian, flags);
if (ret == FSCK_DELETED_KEY)
ret = 0;
fsck_err: fsck_err:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment