bcachefs: Zero btree_paths on allocation
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 13 Aug 2023 22:15:53 +0000 (18:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commitff5b741c25fb9546d876ca4c0c1d8720f6a2471c
tree0e2d24c85bb82e2b0c7bffdb5bffe2b841b78267
parente9679b4a0618b0b55d22ec555bc9c6b2dab39809
bcachefs: Zero btree_paths on allocation

This fixes a bug in the cycle detector, bch2_check_for_deadlock() - we
have to make sure the node pointers in the btree paths array are set to
something not-garbage before another thread may see them.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c