Commit e4e49375 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs; kill bch2_btree_key_cache_flush()

parent a83b6c89
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -747,22 +747,6 @@ int bch2_btree_key_cache_journal_flush(struct journal *j,
	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)
+0 −2
Original line number Diff line number Diff line
@@ -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,
			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 *,
			       struct btree_path *);