bcachefs: Generate better bkey formats when splitting nodes
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 27 Mar 2021 00:08:56 +0000 (20:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:57 +0000 (17:08 -0400)
commit2da5d000b91e0407dedc3baa35cf7c36a0392ff2
tree9ea87ebcd8f5b4a50f3b63354d7f6f9cccd867ae
parent0390ea8ad8f4079c25d47e8c249a2f621aaec3c0
bcachefs: Generate better bkey formats when splitting nodes

On btree node split, we weren't ensuring the min_key of the new larger
node packs in the new format for this node. This triggers some painful
slowpaths in the bset.c aux search tree code - this patch fixes that by
calculating a new format for the new node with the new min_key.

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