Home
last modified time | relevance | path

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

/fs/netfs/
A Dfscache_cache.c61 struct fscache_cache *candidate, *cache, *unnamed = NULL; in fscache_lookup_cache() local
86 candidate = fscache_alloc_cache(name); in fscache_lookup_cache()
87 if (!candidate) in fscache_lookup_cache()
117 list_add_tail(&candidate->cache_link, &fscache_caches); in fscache_lookup_cache()
118 trace_fscache_cache(candidate->debug_id, in fscache_lookup_cache()
119 refcount_read(&candidate->ref), in fscache_lookup_cache()
122 return candidate; in fscache_lookup_cache()
129 cache->name = candidate->name; in fscache_lookup_cache()
130 candidate->name = NULL; in fscache_lookup_cache()
133 kfree(candidate->name); in fscache_lookup_cache()
[all …]
A Dfscache_volume.c157 wait_on_bit_timeout(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING, in fscache_wait_on_volume_collision()
159 if (fscache_is_acquire_pending(candidate)) { in fscache_wait_on_volume_collision()
161 candidate->debug_id, collidee_debug_id); in fscache_wait_on_volume_collision()
163 wait_on_bit(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING, in fscache_wait_on_volume_collision()
173 static bool fscache_hash_volume(struct fscache_volume *candidate) in fscache_hash_volume() argument
180 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1); in fscache_hash_volume()
185 if (fscache_volume_same(candidate, cursor)) { in fscache_hash_volume()
190 set_bit(FSCACHE_VOLUME_ACQUIRE_PENDING, &candidate->flags); in fscache_hash_volume()
196 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_volume()
199 if (fscache_is_acquire_pending(candidate)) in fscache_hash_volume()
[all …]
A Dfscache_cookie.c382 static void fscache_wait_on_collision(struct fscache_cookie *candidate, in fscache_wait_on_collision() argument
391 candidate->debug_id, wait_for->debug_id); in fscache_wait_on_collision()
401 static bool fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
408 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
413 if (fscache_cookie_same(candidate, cursor)) { in fscache_hash_cookie()
422 fscache_get_volume(candidate->volume, fscache_volume_get_cookie); in fscache_hash_cookie()
423 atomic_inc(&candidate->volume->n_cookies); in fscache_hash_cookie()
424 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
425 set_bit(FSCACHE_COOKIE_IS_HASHED, &candidate->flags); in fscache_hash_cookie()
429 fscache_wait_on_collision(candidate, wait_for); in fscache_hash_cookie()
[all …]
/fs/afs/
A Dserver.c70 struct afs_server **candidate) in afs_install_server() argument
77 _enter("%p", candidate); in afs_install_server()
86 diff = memcmp(&(*candidate)->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
95 server = *candidate; in afs_install_server()
96 *candidate = NULL; in afs_install_server()
182 struct afs_server *server, *candidate = NULL; in afs_lookup_server() local
202 candidate = afs_alloc_server(cell, uuid); in afs_lookup_server()
203 if (!candidate) { in afs_lookup_server()
209 server = afs_install_server(cell, &candidate); in afs_lookup_server()
244 if (candidate) { in afs_lookup_server()
[all …]
A Dvolume.c137 struct afs_volume *candidate, *volume; in afs_lookup_volume() local
139 candidate = afs_alloc_volume(params, vldb, &slist); in afs_lookup_volume()
140 if (IS_ERR(candidate)) in afs_lookup_volume()
141 return candidate; in afs_lookup_volume()
143 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
144 if (volume == candidate) in afs_lookup_volume()
147 afs_put_volume(candidate, afs_volume_trace_put_cell_dup); in afs_lookup_volume()
A Dcell.c245 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
265 candidate = afs_alloc_cell(net, name, namesz, vllist); in afs_lookup_cell()
266 if (IS_ERR(candidate)) { in afs_lookup_cell()
267 _leave(" = %ld", PTR_ERR(candidate)); in afs_lookup_cell()
268 return candidate; in afs_lookup_cell()
294 cell = candidate; in afs_lookup_cell()
295 candidate = NULL; in afs_lookup_cell()
335 if (candidate) in afs_lookup_cell()
336 afs_put_cell(candidate, afs_cell_trace_put_candidate); in afs_lookup_cell()
/fs/erofs/
A Dnamei.c95 void *candidate = ERR_PTR(-ENOENT); in erofs_find_target_block() local
140 if (!IS_ERR(candidate)) in erofs_find_target_block()
149 candidate = de; in erofs_find_target_block()
154 if (!IS_ERR(candidate)) in erofs_find_target_block()
158 return candidate; in erofs_find_target_block()

Completed in 21 milliseconds