bcachefs: Use cached iterators for inode updates
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 22 Sep 2019 23:10:21 +0000 (19:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:45 +0000 (17:08 -0400)
commit8cad3e2f73f5c6ad39e9da5564382a2a737a201c
tree4512a3fb765163303fa4b09fe92d2c04cea0e3f1
parente7b854b1f76d34eeea6baa3a1b5eaa1f85ae6340
bcachefs: Use cached iterators for inode updates

This switches inode updates to use cached btree iterators - which should
be a nice performance boost, since lock contention on the inodes btree
can be a bottleneck on multithreaded workloads.

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