bcachefs: Btree splits now only take the locks they need
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 27 Sep 2022 22:57:34 +0000 (18:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:43 +0000 (17:09 -0400)
commit1f0f731ffef13bde3b2cd5a439c886d94d2bb3cc
tree59ae4ae9302d4dffef9ead096f338c6808f8ba02
parent969576ecaeb9b36250f0e099424713e95ca6d730
bcachefs: Btree splits now only take the locks they need

Previously, bch2_btree_update_start() would always take all intent
locks, all the way up to the root.

We've finally got data from users where this became a scalability issue
- so, this patch fixes bch2_btree_update_start() to only take the locks
we need.

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