Lines Matching defs:key
23 static struct btrfs_lru_cache_entry *match_entry(struct list_head *head, u64 key,
29 if (entry->key == key && entry->gen == gen)
40 * @key: The key of the entry we are looking for.
41 * @gen: Generation associated to the key.
43 * Returns the entry associated with the key or NULL if none found.
46 u64 key, u64 gen)
51 head = mtree_load(&cache->entries, key);
55 entry = match_entry(head, key, gen);
89 head = mtree_erase(&cache->entries, entry->key);
110 const u64 key = new_entry->key;
118 ret = mtree_insert(&cache->entries, key, head, gfp);
124 head = mtree_load(&cache->entries, key);
126 if (match_entry(head, key, new_entry->gen) != NULL)