Commit bc230209 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: make fsck spew less

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 741daa5b
......@@ -375,17 +375,15 @@ static int check_dirent_hash(struct hash_check *h, struct bch_fs *c,
kfree(d);
return ret;
err_redo:
bch_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)",
buf, strlen(buf));
hash = bch2_dirent_hash_desc.hash_bkey(&h->info, *k);
if (fsck_err(c, "hash table key at wrong offset: btree %u, offset %llu, "
"hashed to %llu chain starts at %llu\n%s",
BTREE_ID_DIRENTS,
k->k->p.offset, hash, h->chain->pos.offset,
(bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
buf, sizeof(buf), *k), buf))) {
if (fsck_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)\n"
"hash table key at wrong offset: btree %u, offset %llu, "
"hashed to %llu chain starts at %llu\n%s",
buf, strlen(buf), BTREE_ID_DIRENTS,
k->k->p.offset, hash, h->chain->pos.offset,
(bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
buf, sizeof(buf), *k), buf))) {
ret = hash_redo_key(bch2_dirent_hash_desc,
h, c, iter, *k, hash);
if (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