projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4301b6
)
bcachefs: kill bch2_dev_bkey_exists() in journal_ptrs_to_text()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 1 May 2024 22:20:52 +0000
(18:20 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:24 +0000
(17:29 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/journal_io.c
b/fs/bcachefs/journal_io.c
index 9561f1c2ce1acf148d9cb9e5337ab014e8adcf97..c9744546d48d9a9f54dd12f99a985c5d48f0af75 100644
(file)
--- a/
fs/bcachefs/journal_io.c
+++ b/
fs/bcachefs/journal_io.c
@@
-49,11
+49,6
@@
void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c,
struct journal_replay *j)
{
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)
prt_printf(out, " ");
prt_printf(out, "%u:%u:%u (sector %llu)",