Lines Matching defs:new
103 struct cache_head *new, *tmp, *freeme = NULL;
106 new = detail->alloc();
107 if (!new)
109 /* must fully initialise 'new', else
113 cache_init(new, detail);
114 detail->init(new, key);
132 cache_put(new, detail);
136 hlist_add_head_rcu(&new->cache_list, head);
138 cache_get(new);
143 return new;
192 struct cache_head *new)
194 if (!test_bit(CACHE_NEGATIVE, &new->flags)) {
195 detail->update(h, new);
203 struct cache_head *new, struct cache_head *old, int hash)
205 /* The 'old' entry is to be replaced by 'new'.
214 cache_entry_update(detail, old, new);
215 cache_fresh_locked(old, new->expiry_time, detail);
222 /* We need to insert a new entry */
232 cache_entry_update(detail, tmp, new);
236 cache_fresh_locked(tmp, new->expiry_time, detail);