Lines Matching refs:candidate
183 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate)
190 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1);
195 if (fscache_compare_cookie(candidate, cursor) == 0)
199 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags);
200 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent);
201 atomic_inc(&candidate->parent->n_children);
202 hlist_bl_add_head(&candidate->hash_link, h);
204 return candidate;
212 fscache_print_cookie(candidate, 'N');
246 struct fscache_cookie *candidate, *cookie;
276 candidate = fscache_alloc_cookie(parent, def,
280 if (!candidate) {
286 cookie = fscache_hash_cookie(candidate);
288 trace_fscache_cookie(candidate, fscache_cookie_discard, 1);
292 if (cookie == candidate)
293 candidate = NULL;
332 fscache_free_cookie(candidate);