summaryrefslogtreecommitdiff
path: root/cmd_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_dump.c')
-rw-r--r--cmd_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd_dump.c b/cmd_dump.c
index 76b44c58..59d73c3c 100644
--- a/cmd_dump.c
+++ b/cmd_dump.c
@@ -84,7 +84,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd,
if (ret)
die("error %s walking btree nodes", bch2_err_str(ret));
- b = c->btree_roots[i].b;
+ b = bch2_btree_id_root(c, i)->b;
if (!btree_node_fake(b)) {
ptrs = bch2_bkey_ptrs_c(bkey_i_to_s_c(&b->key));