Lines Matching refs:size
325 int size;
330 size = NR_STRIPE_HASH_LOCKS;
333 size = 1;
334 while (size) {
335 struct list_head *list = &temp_inactive_list[size - 1];
350 size--;
1616 * @srcs - (struct page *) array of size sh->disks
2457 * scribble_alloc - allocate percpu scribble buffer for required size
2461 * @cnt: scribble objs count for required size of the scribble region
2463 * The scribble buffer size must be enough to contain:
6896 raid5_set_cache_size(struct mddev *mddev, int size)
6901 if (size <= 16 || size > 32768)
6904 WRITE_ONCE(conf->min_nr_stripes, size);
6906 while (size < conf->max_nr_stripes &&
6914 while (size > conf->max_nr_stripes)
7018 int size;
7061 size = conf->max_nr_stripes;
7068 if (grow_stripes(conf, size)) {
7293 ssize_t size;
7302 size = sizeof(struct r5worker) * cnt;
7303 workers = kcalloc(size, *group_cnt, GFP_NOIO);
7350 /* size is defined by the smallest of previous and new size */
7526 pr_warn("md/raid:%s: invalid chunk size %d\n",
7699 pr_info("md/raid:%s: force stripe size %d for reshape\n",
7861 * be a multiple of the largest chunk size times new data disks.
8004 /* device size must be a multiple of chunk size */
8054 /* read-ahead size must cover two whole stripes, which
8439 * If the chunk size is greater, user-space should request more
8471 * For raid6, 4 is the minimum size.
8532 * of that size
8536 /* Refuse to reduce size of the array. Any reductions in
8537 * array size must be through explicit setting of array_size
8542 pr_warn("md/raid:%s: array size must be reduced before number of disks\n",
8789 /* array size does not allow a suitable chunk size */
8838 /* For a 2-drive array, the layout and chunk size can be changed
8854 /* not factor of array size */
8888 /* not factor of array size */
8900 * raid1 - if there are two drives. We need to know the chunk size
9088 .size = raid5_size,
9113 .size = raid5_size,
9139 .size = raid5_size,