Home
last modified time | relevance | path

Searched refs:array_sectors (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/md/
Dmd-linear.c52 sector_t array_sectors; in linear_size() local
57 array_sectors = conf->array_sectors; in linear_size()
59 return array_sectors; in linear_size()
74 conf->array_sectors = 0; in linear_conf()
97 conf->array_sectors += rdev->sectors; in linear_conf()
203 set_capacity(mddev->gendisk, mddev->array_sectors); in linear_add()
Dmd-linear.h13 sector_t array_sectors; member
Ddm-raid.c246 sector_t array_sectors; member
703 set_capacity(gendisk, rs->md.array_sectors); in rs_set_capacity()
1626 sector_t array_sectors = sectors, dev_sectors = sectors; in rs_set_dev_and_array_sectors() local
1651 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
1652 if (sector_div(array_sectors, rs->raid10_copies)) in rs_set_dev_and_array_sectors()
1660 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
1662 mddev->array_sectors = array_sectors; in rs_set_dev_and_array_sectors()
1969 __le64 array_sectors; /* Array size in sectors */ member
2139 sb->array_sectors = cpu_to_le64(mddev->array_sectors); in super_sync()
2237 mddev->array_sectors = le64_to_cpu(sb->array_sectors); in super_init_validation()
[all …]
Draid0.c346 sector_t array_sectors = 0; in raid0_size() local
353 array_sectors += (rdev->sectors & in raid0_size()
356 return array_sectors; in raid0_size()
411 (unsigned long long)mddev->array_sectors); in raid0_run()
698 while (chunksect && (mddev->array_sectors & (chunksect - 1))) in raid0_takeover_raid1()
Dmd.h322 sector_t array_sectors; /* exported array size */ member
728 extern void md_set_array_sectors(struct mddev *mddev, sector_t array_sectors);
Dmd.c5319 (unsigned long long)mddev->array_sectors/2); in array_size_show()
5344 sectors = mddev->array_sectors; in array_size_store()
5357 mddev->array_sectors = sectors; in array_size_store()
5359 set_capacity(mddev->gendisk, mddev->array_sectors); in array_size_store()
5972 else if (pers->size(mddev, 0, 0) < mddev->array_sectors) { in md_run()
5977 (unsigned long long)mddev->array_sectors / 2, in md_run()
6110 set_capacity(mddev->gendisk, mddev->array_sectors); in do_md_run()
6182 mddev->array_sectors = 0; in md_clean()
7212 void md_set_array_sectors(struct mddev *mddev, sector_t array_sectors) in md_set_array_sectors() argument
7219 mddev->array_sectors = array_sectors; in md_set_array_sectors()
[all …]
Dmd-cluster.c584 set_capacity(mddev->gendisk, mddev->array_sectors); in process_recvd_msg()
1299 set_capacity(mddev->gendisk, mddev->array_sectors); in update_size()
Draid10.c3966 mddev->array_sectors > size) in raid10_resize()
4072 if (mddev->array_sectors & geo.chunk_mask) in raid10_check_reshape()
4220 if (size < mddev->array_sectors) { in raid10_start_reshape()
4854 mddev->resync_max_sectors = mddev->array_sectors; in raid10_finish_reshape()
Draid5.c8061 mddev->array_sectors > newsize) in raid5_resize()
8180 < mddev->array_sectors) { in raid5_start_reshape()
8418 while (chunksect && (mddev->array_sectors & (chunksect-1))) in raid5_takeover_raid1()
8486 if (mddev->array_sectors & (new_chunk-1)) in raid5_check_reshape()
8520 if (mddev->array_sectors & (new_chunk-1)) in raid6_check_reshape()
Draid1.c3190 mddev->array_sectors > newsize) in raid1_resize()
/Linux-v5.10/Documentation/driver-api/md/
Dmd-cluster.rst385 - change array_sectors.