bcachefs: Fix a cache coherency bug in bch2_subvolume_create()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 18 Oct 2021 18:46:57 +0000 (14:46 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:14 +0000 (17:09 -0400)
commitca130b9c5e120994483a34c72526dcd4bf308d84
tree3753fbd9cbd7b1cbc2f1408e8cea775788bad6ea
parent6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214
bcachefs: Fix a cache coherency bug in bch2_subvolume_create()

Subvolume deletion doesn't flush & evict the btree key cache - ideally
it would, but that's tricky, so instead bch2_subvolume_create() needs to
make sure the slot doesn't exist in the key cache to avoid triggering
assertions.

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