bcachefs: Various fixes for interior update path
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 28 Mar 2020 23:17:23 +0000 (19:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:37 +0000 (17:08 -0400)
commit56a40fbc4e398c00e8b667f9c30b40b7695065f3
treecc215778e80cc4db69b046feab6aa5b2c7152f95
parent4e4758c6cbbbc31aad9ec733c6f49a7221fd7b70
bcachefs: Various fixes for interior update path

The locking was wrong, and we could get a use after free in the error
path where we weren't taking the entrie being freed off the unwritten
list.

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