Lines Matching refs:candidate
154 static void fscache_wait_on_volume_collision(struct fscache_volume *candidate, in fscache_wait_on_volume_collision() argument
157 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()
200 fscache_wait_on_volume_collision(candidate, collidee_debug_id); in fscache_hash_volume()