Commit b6d29b58 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: kill bch2_dev_bkey_exists() in journal_ptrs_to_text()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f4301b63
...@@ -49,11 +49,6 @@ void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c, ...@@ -49,11 +49,6 @@ void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c,
struct journal_replay *j) struct journal_replay *j)
{ {
darray_for_each(j->ptrs, i) { darray_for_each(j->ptrs, i) {
struct bch_dev *ca = bch2_dev_bkey_exists(c, i->dev);
u64 offset;
div64_u64_rem(i->sector, ca->mi.bucket_size, &offset);
if (i != j->ptrs.data) if (i != j->ptrs.data)
prt_printf(out, " "); prt_printf(out, " ");
prt_printf(out, "%u:%u:%u (sector %llu)", prt_printf(out, "%u:%u:%u (sector %llu)",
......
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