Commit 2a84de33 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Log what we're doing when repairing

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent dfd41fb9
......@@ -691,11 +691,17 @@ static int bch2_check_fix_ptrs(struct bch_fs *c, enum btree_id btree_id,
}
ret = bch2_journal_key_insert_take(c, btree_id, level, new);
if (ret)
kfree(new);
else
else {
bch2_bkey_val_to_text(&PBUF(buf), c, *k);
bch_info(c, "updated %s", buf);
bch2_bkey_val_to_text(&PBUF(buf), c, bkey_i_to_s_c(new));
bch_info(c, "new key %s", buf);
*k = bkey_i_to_s_c(new);
}
}
fsck_err:
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