Lines Matching refs:size
315 int size;
320 size = NR_STRIPE_HASH_LOCKS;
323 size = 1;
324 while (size) {
325 struct list_head *list = &temp_inactive_list[size - 1];
340 size--;
1538 * @srcs - (struct page *) array of size sh->disks
2386 * scribble_alloc - allocate percpu scribble buffer for required size
2390 * @cnt: scribble objs count for required size of the scribble region
2392 * The scribble buffer size must be enough to contain:
6561 raid5_set_cache_size(struct mddev *mddev, int size)
6566 if (size <= 16 || size > 32768)
6569 conf->min_nr_stripes = size;
6571 while (size < conf->max_nr_stripes &&
6579 while (size > conf->max_nr_stripes)
6683 int size;
6726 size = conf->max_nr_stripes;
6733 if (grow_stripes(conf, size)) {
6958 ssize_t size;
6967 size = sizeof(struct r5worker) * cnt;
6968 workers = kcalloc(size, *group_cnt, GFP_NOIO);
7015 /* size is defined by the smallest of previous and new size */
7188 pr_warn("md/raid:%s: invalid chunk size %d\n",
7357 pr_info("md/raid:%s: force stripe size %d for reshape\n",
7518 * be a multiple of the largest chunk size times new data disks.
7662 /* device size must be a multiple of chunk size */
7712 /* read-ahead size must cover two whole stripes, which
8085 * If the chunk size is greater, user-space should request more
8117 * For raid6, 4 is the minimum size.
8170 * of that size
8174 /* Refuse to reduce size of the array. Any reductions in
8175 * array size must be through explicit setting of array_size
8180 pr_warn("md/raid:%s: array size must be reduced before number of disks\n",
8421 /* array size does not allow a suitable chunk size */
8470 /* For a 2-drive array, the layout and chunk size can be changed
8486 /* not factor of array size */
8520 /* not factor of array size */
8532 * raid1 - if there are two drives. We need to know the chunk size
8701 .size = raid5_size,
8725 .size = raid5_size,
8750 .size = raid5_size,