Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/md/
H A Draid5.h497 /* NOTE NR_STRIPE_HASH_LOCKS must remain below 64.
502 #define NR_STRIPE_HASH_LOCKS 8 macro
503 #define STRIPE_HASH_LOCKS_MASK (NR_STRIPE_HASH_LOCKS - 1)
508 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
565 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.c97 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++) in lock_all_device_hash_locks_irq()
106 for (i = NR_STRIPE_HASH_LOCKS - 1; i; i--) in unlock_all_device_hash_locks_irq()
305 * @hash could be NR_STRIPE_HASH_LOCKS, then we have a list of inactive_list
319 if (hash == NR_STRIPE_HASH_LOCKS) { in release_inactive_stripe_list()
320 size = NR_STRIPE_HASH_LOCKS; in release_inactive_stripe_list()
321 hash = NR_STRIPE_HASH_LOCKS - 1; in release_inactive_stripe_list()
2347 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_one_stripe()
2553 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()
2554 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()
5607 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)
/kernel/linux/linux-6.6/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.c103 for (i = 1; i < NR_STRIPE_HASH_LOCKS; i++)
113 for (i = NR_STRIPE_HASH_LOCKS - 1; i; i--)
315 * @hash could be NR_STRIPE_HASH_LOCKS, then we have a list of inactive_list
329 if (hash == NR_STRIPE_HASH_LOCKS) { in release_inactive_stripe_list()
330 size = NR_STRIPE_HASH_LOCKS; in release_inactive_stripe_list()
331 hash = NR_STRIPE_HASH_LOCKS - 1; in release_inactive_stripe_list()
2418 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_one_stripe()
2624 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()
2625 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()
5712 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 32 milliseconds