Searched refs:NR_STRIPE_HASH_LOCKS (Results 1 - 3 of 3) sorted by relevance

/linux-master/drivers/md/
H A Draid5.h499 /* NOTE NR_STRIPE_HASH_LOCKS must remain below 64.
504 #define NR_STRIPE_HASH_LOCKS 8 macro
505 #define STRIPE_HASH_LOCKS_MASK (NR_STRIPE_HASH_LOCKS - 1)
510 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
577 spinlock_t hash_locks[NR_STRIPE_HASH_LOCKS];
658 struct list_head inactive_list[NR_STRIPE_HASH_LOCKS];
683 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
H A Draid5.c105 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++)
115 for (i = NR_STRIPE_HASH_LOCKS - 1; i; i--)
317 * @hash could be NR_STRIPE_HASH_LOCKS, then we have a list of inactive_list
331 if (hash == NR_STRIPE_HASH_LOCKS) {
332 size = NR_STRIPE_HASH_LOCKS;
333 hash = NR_STRIPE_HASH_LOCKS - 1;
2404 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS;
2608 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS +
2609 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) {
5652 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
[all...]
H A Draid5-cache.c41 #define R5C_RECLAIM_STRIPE_GROUP (NR_STRIPE_HASH_LOCKS * 2)

Completed in 138 milliseconds