Commit e4e49375 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs; kill bch2_btree_key_cache_flush()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a83b6c89
...@@ -747,22 +747,6 @@ int bch2_btree_key_cache_journal_flush(struct journal *j, ...@@ -747,22 +747,6 @@ int bch2_btree_key_cache_journal_flush(struct journal *j,
return ret; return ret;
} }
/*
* Flush and evict a key from the key cache:
*/
int bch2_btree_key_cache_flush(struct btree_trans *trans,
enum btree_id id, struct bpos pos)
{
struct bch_fs *c = trans->c;
struct bkey_cached_key key = { id, pos };
/* Fastpath - assume it won't be found: */
if (!bch2_btree_key_cache_find(c, id, pos))
return 0;
return btree_key_cache_flush_pos(trans, key, 0, 0, true);
}
bool bch2_btree_insert_key_cached(struct btree_trans *trans, bool bch2_btree_insert_key_cached(struct btree_trans *trans,
unsigned flags, unsigned flags,
struct btree_insert_entry *insert_entry) struct btree_insert_entry *insert_entry)
......
...@@ -31,8 +31,6 @@ int bch2_btree_path_traverse_cached(struct btree_trans *, struct btree_path *, ...@@ -31,8 +31,6 @@ int bch2_btree_path_traverse_cached(struct btree_trans *, struct btree_path *,
bool bch2_btree_insert_key_cached(struct btree_trans *, unsigned, bool bch2_btree_insert_key_cached(struct btree_trans *, unsigned,
struct btree_insert_entry *); struct btree_insert_entry *);
int bch2_btree_key_cache_flush(struct btree_trans *,
enum btree_id, struct bpos);
void bch2_btree_key_cache_drop(struct btree_trans *, void bch2_btree_key_cache_drop(struct btree_trans *,
struct btree_path *); struct btree_path *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment