Home
last modified time | relevance | path

Searched refs:candidate (Results 1 – 5 of 5) sorted by relevance

/fs/fscache/
Dnetfs.c18 struct fscache_cookie *candidate, *cookie; in __fscache_register_netfs() local
23 candidate = fscache_alloc_cookie(&fscache_fsdef_index, in __fscache_register_netfs()
28 if (!candidate) { in __fscache_register_netfs()
33 candidate->flags = 1 << FSCACHE_COOKIE_ENABLED; in __fscache_register_netfs()
36 cookie = fscache_hash_cookie(candidate); in __fscache_register_netfs()
39 if (cookie != candidate) { in __fscache_register_netfs()
40 trace_fscache_cookie(candidate, fscache_cookie_discard, 1); in __fscache_register_netfs()
41 fscache_free_cookie(candidate); in __fscache_register_netfs()
55 fscache_cookie_put(candidate, fscache_cookie_put_dup_netfs); in __fscache_register_netfs()
Dcookie.c183 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
190 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
195 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
199 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags); in fscache_hash_cookie()
200 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent); in fscache_hash_cookie()
201 atomic_inc(&candidate->parent->n_children); in fscache_hash_cookie()
202 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
204 return candidate; in fscache_hash_cookie()
212 fscache_print_cookie(candidate, 'N'); in fscache_hash_cookie()
246 struct fscache_cookie *candidate, *cookie; in __fscache_acquire_cookie() local
[all …]
/fs/erofs/
Dnamei.c97 struct page *candidate = ERR_PTR(-ENOENT); in find_target_block_classic() local
148 if (!IS_ERR(candidate)) in find_target_block_classic()
149 put_page(candidate); in find_target_block_classic()
150 candidate = page; in find_target_block_classic()
161 if (!IS_ERR(candidate)) in find_target_block_classic()
162 put_page(candidate); in find_target_block_classic()
165 return candidate; in find_target_block_classic()
/fs/afs/
Dserver.c145 struct afs_server *candidate) in afs_install_server() argument
152 _enter("%p", candidate); in afs_install_server()
163 diff = memcmp(&candidate->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
172 server = candidate; in afs_install_server()
272 struct afs_server *server, *candidate; in afs_lookup_server() local
284 candidate = afs_alloc_server(cell->net, uuid, alist); in afs_lookup_server()
285 if (!candidate) { in afs_lookup_server()
290 server = afs_install_server(cell->net, candidate); in afs_lookup_server()
291 if (server != candidate) { in afs_lookup_server()
293 kfree(candidate); in afs_lookup_server()
Dcell.c236 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
258 candidate = afs_alloc_cell(net, name, namesz, vllist); in afs_lookup_cell()
259 if (IS_ERR(candidate)) { in afs_lookup_cell()
260 _leave(" = %ld", PTR_ERR(candidate)); in afs_lookup_cell()
261 return candidate; in afs_lookup_cell()
287 cell = candidate; in afs_lookup_cell()
288 candidate = NULL; in afs_lookup_cell()
323 kfree(candidate); in afs_lookup_cell()