Lines Matching refs:max_nr_stripes
804 (conf->max_nr_stripes * 3 / 4)); in is_inactive_blocked()
2396 conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS; in grow_one_stripe()
2401 WRITE_ONCE(conf->max_nr_stripes, conf->max_nr_stripes + 1); in grow_one_stripe()
2553 for (i = conf->max_nr_stripes; i; i--) { in resize_stripes()
2600 if (cnt >= conf->max_nr_stripes / NR_STRIPE_HASH_LOCKS + in resize_stripes()
2601 !!((conf->max_nr_stripes % NR_STRIPE_HASH_LOCKS) > hash)) { in resize_stripes()
2685 int hash = (conf->max_nr_stripes - 1) & STRIPE_HASH_LOCKS_MASK; in drop_one_stripe()
2696 WRITE_ONCE(conf->max_nr_stripes, conf->max_nr_stripes - 1); in drop_one_stripe()
2702 while (conf->max_nr_stripes && in shrink_stripes()
2799 > conf->max_nr_stripes) { in raid5_end_read_request()
2804 conf->max_nr_stripes); in raid5_end_read_request()
6884 while (size < conf->max_nr_stripes && in raid5_set_cache_size()
6892 while (size > conf->max_nr_stripes) in raid5_set_cache_size()
6894 WRITE_ONCE(conf->min_nr_stripes, conf->max_nr_stripes); in raid5_set_cache_size()
7036 size = conf->max_nr_stripes; in raid5_store_stripe_size()
7445 conf->max_nr_stripes > conf->min_nr_stripes) { in raid5_cache_scan()
7461 int max_stripes = READ_ONCE(conf->max_nr_stripes); in raid5_cache_count()