summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_key_cache.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-09-22 19:10:21 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:45 -0400
commit8cad3e2f73f5c6ad39e9da5564382a2a737a201c (patch)
tree4512a3fb765163303fa4b09fe92d2c04cea0e3f1 /fs/bcachefs/btree_key_cache.h
parente7b854b1f76d34eeea6baa3a1b5eaa1f85ae6340 (diff)
downloadlinux-8cad3e2f73f5c6ad39e9da5564382a2a737a201c.tar.gz
linux-8cad3e2f73f5c6ad39e9da5564382a2a737a201c.tar.bz2
linux-8cad3e2f73f5c6ad39e9da5564382a2a737a201c.zip
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>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.h')
-rw-r--r--fs/bcachefs/btree_key_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_key_cache.h b/fs/bcachefs/btree_key_cache.h
index b1756c6c622c..d448264abcc8 100644
--- a/fs/bcachefs/btree_key_cache.h
+++ b/fs/bcachefs/btree_key_cache.h
@@ -1,6 +1,9 @@
#ifndef _BCACHEFS_BTREE_KEY_CACHE_H
#define _BCACHEFS_BTREE_KEY_CACHE_H
+struct bkey_cached *
+bch2_btree_key_cache_find(struct bch_fs *, enum btree_id, struct bpos);
+
int bch2_btree_iter_traverse_cached(struct btree_iter *);
bool bch2_btree_insert_key_cached(struct btree_trans *,