Lines Matching refs:num_locks
28 unsigned int num_locks; member
29 struct prison_region regions[] __counted_by(num_locks);
43 unsigned int i, num_locks; in dm_bio_prison_create() local
46 num_locks = dm_num_hash_locks(); in dm_bio_prison_create()
47 prison = kzalloc(struct_size(prison, regions, num_locks), GFP_KERNEL); in dm_bio_prison_create()
50 prison->num_locks = num_locks; in dm_bio_prison_create()
52 for (i = 0; i < prison->num_locks; i++) { in dm_bio_prison_create()
120 static inline unsigned int lock_nr(struct dm_cell_key *key, unsigned int num_locks) in lock_nr() argument
123 num_locks); in lock_nr()
182 unsigned l = lock_nr(key, prison->num_locks); in bio_detain()
230 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_release()
253 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_release_no_holder()
283 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_visit_release()
307 unsigned l = lock_nr(&cell->key, prison->num_locks); in dm_cell_promote_or_release()