bcachefs: Fix locking when checking freespace btree
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 16 Nov 2023 22:28:16 +0000 (17:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:36 +0000 (11:47 -0500)
commit7d9ae04e3987648b99b9ac8036178a75fb913dd6
tree1613b56211ce5e7a0b30e5aecc78aa1b1c13c0c4
parent359d1bad1b5cc047e26d8fefa0b368df89f53acb
bcachefs: Fix locking when checking freespace btree

On transaction restart, we weren't re-validating the hole we saw.

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