bcachefs; kill bch2_btree_key_cache_flush()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
a83b6c895c
commit
e4e49375a8
|
@ -747,22 +747,6 @@ unlock:
|
||||||
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 *,
|
||||||
|
|
||||||
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 *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue