Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/md/
Draid5.h509 #define NR_STRIPE_HASH_LOCKS 8 macro
510 #define STRIPE_HASH_LOCKS_MASK (NR_STRIPE_HASH_LOCKS - 1)
515 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
572 spinlock_t hash_locks[NR_STRIPE_HASH_LOCKS];
654 struct list_head inactive_list[NR_STRIPE_HASH_LOCKS];
679 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
Draid5.c106 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++) in lock_all_device_hash_locks_irq()
115 for (i = NR_STRIPE_HASH_LOCKS - 1; i; i--) in unlock_all_device_hash_locks_irq()
328 if (hash == NR_STRIPE_HASH_LOCKS) { in release_inactive_stripe_list()
329 size = NR_STRIPE_HASH_LOCKS; in release_inactive_stripe_list()
330 hash = NR_STRIPE_HASH_LOCKS - 1; in release_inactive_stripe_list()
2190 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_one_stripe()
2384 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()
2385 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()
5407 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
5443 NR_STRIPE_HASH_LOCKS); in raid5_unplug()
[all …]
Draid5-cache.c50 #define R5C_RECLAIM_STRIPE_GROUP (NR_STRIPE_HASH_LOCKS * 2)