Lines Matching refs:candidate
199 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
206 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
211 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
215 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags); in fscache_hash_cookie()
216 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent); in fscache_hash_cookie()
217 atomic_inc(&candidate->parent->n_children); in fscache_hash_cookie()
218 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
220 return candidate; in fscache_hash_cookie()
228 fscache_print_cookie(candidate, 'N'); in fscache_hash_cookie()
262 struct fscache_cookie *candidate, *cookie; in __fscache_acquire_cookie() local
292 candidate = fscache_alloc_cookie(parent, def, in __fscache_acquire_cookie()
296 if (!candidate) { in __fscache_acquire_cookie()
302 cookie = fscache_hash_cookie(candidate); in __fscache_acquire_cookie()
304 trace_fscache_cookie(candidate, fscache_cookie_discard, 1); in __fscache_acquire_cookie()
308 if (cookie == candidate) in __fscache_acquire_cookie()
309 candidate = NULL; in __fscache_acquire_cookie()
348 fscache_free_cookie(candidate); in __fscache_acquire_cookie()