Lines Matching refs:candidate
195 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
202 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
207 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
211 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags); in fscache_hash_cookie()
212 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent); in fscache_hash_cookie()
213 atomic_inc(&candidate->parent->n_children); in fscache_hash_cookie()
214 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
216 return candidate; in fscache_hash_cookie()
224 fscache_print_cookie(candidate, 'N'); in fscache_hash_cookie()
258 struct fscache_cookie *candidate, *cookie; in __fscache_acquire_cookie() local
288 candidate = fscache_alloc_cookie(parent, def, in __fscache_acquire_cookie()
292 if (!candidate) { in __fscache_acquire_cookie()
298 cookie = fscache_hash_cookie(candidate); in __fscache_acquire_cookie()
300 trace_fscache_cookie(candidate, fscache_cookie_discard, 1); in __fscache_acquire_cookie()
304 if (cookie == candidate) in __fscache_acquire_cookie()
305 candidate = NULL; in __fscache_acquire_cookie()
344 fscache_free_cookie(candidate); in __fscache_acquire_cookie()