Lines Matching refs:candidate
187 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
194 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
199 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
203 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags); in fscache_hash_cookie()
204 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent); in fscache_hash_cookie()
205 atomic_inc(&candidate->parent->n_children); in fscache_hash_cookie()
206 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
208 return candidate; in fscache_hash_cookie()
216 fscache_print_cookie(candidate, 'N'); in fscache_hash_cookie()
250 struct fscache_cookie *candidate, *cookie; in __fscache_acquire_cookie() local
280 candidate = fscache_alloc_cookie(parent, def, in __fscache_acquire_cookie()
284 if (!candidate) { in __fscache_acquire_cookie()
290 cookie = fscache_hash_cookie(candidate); in __fscache_acquire_cookie()
292 trace_fscache_cookie(candidate, fscache_cookie_discard, 1); in __fscache_acquire_cookie()
296 if (cookie == candidate) in __fscache_acquire_cookie()
297 candidate = NULL; in __fscache_acquire_cookie()
336 fscache_free_cookie(candidate); in __fscache_acquire_cookie()