diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-10 17:52:58 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:41 -0500 |
| commit | e4e49375a8e4d9c9b65e79070ef6cff2433a7d5f (patch) | |
| tree | 8be9e59dee87883be1292e11447242461b547289 /fs/bcachefs/btree_key_cache.c | |
| parent | bcachefs: kill btree_path->(alloc_seq|downgrade_seq) (diff) | |
| download | linux-e4e49375a8e4d9c9b65e79070ef6cff2433a7d5f.tar.gz linux-e4e49375a8e4d9c9b65e79070ef6cff2433a7d5f.zip | |
bcachefs; kill bch2_btree_key_cache_flush()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.c')
| -rw-r--r-- | fs/bcachefs/btree_key_cache.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/bcachefs/btree_key_cache.c b/fs/bcachefs/btree_key_cache.c index b39b28b4ae73..7d2db1e5df3b 100644 --- a/fs/bcachefs/btree_key_cache.c +++ b/fs/bcachefs/btree_key_cache.c @@ -747,22 +747,6 @@ unlock: 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, unsigned flags, struct btree_insert_entry *insert_entry) |
