Commit 2da671dc authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Use btree_type_has_ptrs() more consistently

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6c22eb70
......@@ -1963,7 +1963,7 @@ int bch2_gc_gens(struct bch_fs *c)
}
for (i = 0; i < BTREE_ID_NR; i++)
if ((1 << i) & BTREE_ID_HAS_PTRS) {
if (btree_type_has_ptrs(i)) {
struct btree_iter iter;
struct bkey_s_c k;
......
......@@ -298,7 +298,7 @@ static int bch2_compression_stats_to_text(struct printbuf *out, struct bch_fs *c
bch2_trans_init(&trans, c, 0, 0);
for (id = 0; id < BTREE_ID_NR; id++) {
if (!((1U << id) & BTREE_ID_HAS_PTRS))
if (!btree_type_has_ptrs(id))
continue;
for_each_btree_key(&trans, iter, id, POS_MIN,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment