Skip to content

Commit 9b31152

Browse files
author
Kent Overstreet
committed
bcachefs: btree_node_scan: Respect member.data_allowed
If a device wasn't used for btree nodes, no need to scan for them. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 5ab4beb commit 9b31152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/btree_node_scan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ static int read_btree_nodes(struct find_btree_nodes *f)
216216
closure_init_stack(&cl);
217217

218218
for_each_online_member(c, ca) {
219+
if (!(ca->mi.data_allowed & BIT(BCH_DATA_btree)))
220+
continue;
221+
219222
struct find_btree_nodes_worker *w = kmalloc(sizeof(*w), GFP_KERNEL);
220223
struct task_struct *t;
221224

0 commit comments

Comments
 (0)