summaryrefslogtreecommitdiff
path: root/c_src
diff options
context:
space:
mode:
Diffstat (limited to 'c_src')
-rw-r--r--c_src/cmd_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_src/cmd_dump.c b/c_src/cmd_dump.c
index de0960fe..6e1b9df2 100644
--- a/c_src/cmd_dump.c
+++ b/c_src/cmd_dump.c
@@ -77,7 +77,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
if (ptr->dev == ca->dev_idx)
range_add(&data,
ptr->offset << 9,
- btree_ptr_sectors_written(&b->key));
+ btree_ptr_sectors_written(&b->key) << 9);
}
}
@@ -92,7 +92,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
if (ptr->dev == ca->dev_idx)
range_add(&data,
ptr->offset << 9,
- btree_ptr_sectors_written(&b->key));
+ btree_ptr_sectors_written(&b->key) << 9);
}
bch2_trans_iter_exit(trans, &iter);