Skip to content
Commit 968feb85 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Convert for_each_btree_node() to lockrestart_do()



for_each_btree_node() now works similarly to for_each_btree_key(), where
the loop body is passed as an argument to be passed to lockrestart_do().

This now calls trans_begin() on every loop iteration - which fixes an
SRCU warning in backpointers fsck.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 48d6cc1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment