Skip to content

Commit b6d29b5

Browse files
author
Kent Overstreet
committed
bcachefs: kill bch2_dev_bkey_exists() in journal_ptrs_to_text()
Signed-off-by: Kent Overstreet <[email protected]>
1 parent f4301b6 commit b6d29b5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/bcachefs/journal_io.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c,
4949
struct journal_replay *j)
5050
{
5151
darray_for_each(j->ptrs, i) {
52-
struct bch_dev *ca = bch2_dev_bkey_exists(c, i->dev);
53-
u64 offset;
54-
55-
div64_u64_rem(i->sector, ca->mi.bucket_size, &offset);
56-
5752
if (i != j->ptrs.data)
5853
prt_printf(out, " ");
5954
prt_printf(out, "%u:%u:%u (sector %llu)",

0 commit comments

Comments
 (0)