bcachefs: Add a single slot percpu buf for btree iters
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 6 Nov 2020 01:02:01 +0000 (20:02 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:46 +0000 (17:08 -0400)
commit1a21bf9866700f29ad552cca8bbddfd248bb751c
tree87d294e6d74ee64d7df3ff8c74cea2deacfc59af
parent00276f9f34c29c59a848e22eb491d76c268f0dad
bcachefs: Add a single slot percpu buf for btree iters

Allocating our array of btree iters is a big enough allocation that it
hits the buddy allocator, and we're seeing lots of lock contention.
Sticking a single element buffer in front of it should help.

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