Lines Matching refs:candidate
141 static void fscache_wait_on_volume_collision(struct fscache_volume *candidate,
144 wait_on_bit_timeout(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING,
146 if (fscache_is_acquire_pending(candidate)) {
148 candidate->debug_id, collidee_debug_id);
150 wait_on_bit(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING,
160 static bool fscache_hash_volume(struct fscache_volume *candidate)
167 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1);
172 if (fscache_volume_same(candidate, cursor)) {
177 set_bit(FSCACHE_VOLUME_ACQUIRE_PENDING, &candidate->flags);
183 hlist_bl_add_head(&candidate->hash_link, h);
186 if (fscache_is_acquire_pending(candidate))
187 fscache_wait_on_volume_collision(candidate, collidee_debug_id);