bcachefs: Change btree split threshold to be in u64s
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 15 Jan 2020 20:11:22 +0000 (15:11 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:34 +0000 (17:08 -0400)
commit5525f632dc123ed32f17c649a54d07794a873822
tree978a13d6ca9ca83d5971fe59009cebcd8d2cbd22
parentd98a5e39452e08d4d51c2240b0711ea86a62de6d
bcachefs: Change btree split threshold to be in u64s

This fixes a bug with very small btree nodes where splitting would end
up with one of the new nodes empty.

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