Searched refs:NR_STRIPE_HASH_LOCKS (Results 1 – 2 of 2) sorted by relevance
376 #define NR_STRIPE_HASH_LOCKS 8 macro377 #define STRIPE_HASH_LOCKS_MASK (NR_STRIPE_HASH_LOCKS - 1)382 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];396 spinlock_t hash_locks[NR_STRIPE_HASH_LOCKS];478 struct list_head inactive_list[NR_STRIPE_HASH_LOCKS];494 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
114 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++) in lock_all_device_hash_locks_irq()123 for (i = NR_STRIPE_HASH_LOCKS; i; i--) in unlock_all_device_hash_locks_irq()352 if (hash == NR_STRIPE_HASH_LOCKS) { in release_inactive_stripe_list()353 size = NR_STRIPE_HASH_LOCKS; in release_inactive_stripe_list()354 hash = NR_STRIPE_HASH_LOCKS - 1; in release_inactive_stripe_list()1758 hash = conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_stripes()1763 hash = (hash + 1) % NR_STRIPE_HASH_LOCKS; in grow_stripes()1882 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()1883 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()1966 for (hash = 0; hash < NR_STRIPE_HASH_LOCKS; hash++) in shrink_stripes()[all …]