Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs; kill bch2_btree_key_cache_flush()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

-18
-16
fs/bcachefs/btree_key_cache.c
··· 747 747 return ret; 748 748 } 749 749 750 - /* 751 - * Flush and evict a key from the key cache: 752 - */ 753 - int bch2_btree_key_cache_flush(struct btree_trans *trans, 754 - enum btree_id id, struct bpos pos) 755 - { 756 - struct bch_fs *c = trans->c; 757 - struct bkey_cached_key key = { id, pos }; 758 - 759 - /* Fastpath - assume it won't be found: */ 760 - if (!bch2_btree_key_cache_find(c, id, pos)) 761 - return 0; 762 - 763 - return btree_key_cache_flush_pos(trans, key, 0, 0, true); 764 - } 765 - 766 750 bool bch2_btree_insert_key_cached(struct btree_trans *trans, 767 751 unsigned flags, 768 752 struct btree_insert_entry *insert_entry)
-2
fs/bcachefs/btree_key_cache.h
··· 31 31 32 32 bool bch2_btree_insert_key_cached(struct btree_trans *, unsigned, 33 33 struct btree_insert_entry *); 34 - int bch2_btree_key_cache_flush(struct btree_trans *, 35 - enum btree_id, struct bpos); 36 34 void bch2_btree_key_cache_drop(struct btree_trans *, 37 35 struct btree_path *); 38 36