Home
last modified time | relevance | path

Searched refs:NR_STRIPE_HASH_LOCKS (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/md/
H A Draid5.h500 #define NR_STRIPE_HASH_LOCKS 8 macro
501 #define STRIPE_HASH_LOCKS_MASK (NR_STRIPE_HASH_LOCKS - 1)
506 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
573 spinlock_t hash_locks[NR_STRIPE_HASH_LOCKS];
653 struct list_head inactive_list[NR_STRIPE_HASH_LOCKS];
678 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
H A Draid5.c108 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++) in lock_all_device_hash_locks_irq()
118 for (i = NR_STRIPE_HASH_LOCKS - 1; i; i--) in unlock_all_device_hash_locks_irq()
334 if (hash == NR_STRIPE_HASH_LOCKS) { in release_inactive_stripe_list()
335 size = NR_STRIPE_HASH_LOCKS; in release_inactive_stripe_list()
336 hash = NR_STRIPE_HASH_LOCKS - 1; in release_inactive_stripe_list()
2411 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_one_stripe()
2613 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()
2614 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()
5714 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
5750 NR_STRIPE_HASH_LOCKS); in raid5_unplug()
[all …]