summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-12-21 23:13:52 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2021-12-25 18:48:46 -0500
commitad031731727d4239351afeebf675f069a289beb3 (patch)
tree6b5dba68f20c6861d90f5706bf1e822a94b84ed6 /cmd_debug.c
parent00f49f23b4c37865618c74a5cb3a65308a9c511d (diff)
Update bcachefs sources to aa540d47ab bcachefs: Option improvements
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 73f8686c..eac9c383 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -295,7 +295,7 @@ static void print_node_ondisk(struct bch_fs *c, struct btree *b)
bio_put(bio);
percpu_ref_put(&ca->io_ref);
- while (offset < c->opts.btree_node_size) {
+ while (offset < btree_sectors(c)) {
struct bset *i;
struct nonce nonce;
struct bch_csum csum;