Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/md/
Dlinear.c114 sector_t array_sectors; in linear_size() local
120 array_sectors = conf->array_sectors; in linear_size()
123 return array_sectors; in linear_size()
138 conf->array_sectors = 0; in linear_conf()
170 conf->array_sectors += rdev->sectors; in linear_conf()
248 set_capacity(mddev->gendisk, mddev->array_sectors); in linear_add()
Dlinear.h13 sector_t array_sectors; member
Draid0.c323 sector_t array_sectors = 0; in raid0_size() local
330 array_sectors += rdev->sectors; in raid0_size()
332 return array_sectors; in raid0_size()
363 (unsigned long long)mddev->array_sectors); in raid0_run()
Dmd.h160 sector_t array_sectors; /* exported array size */ member
495 extern void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors);
Dmd.c4129 (unsigned long long)mddev->array_sectors/2); in array_size_show()
4143 sectors = mddev->array_sectors; in array_size_store()
4155 mddev->array_sectors = sectors; in array_size_store()
4157 set_capacity(mddev->gendisk, mddev->array_sectors); in array_size_store()
4560 else if (mddev->pers->size(mddev, 0, 0) < mddev->array_sectors) { in md_run()
4565 (unsigned long long)mddev->array_sectors / 2, in md_run()
4640 set_capacity(mddev->gendisk, mddev->array_sectors); in do_md_run()
4700 mddev->array_sectors = 0; in md_clean()
5539 void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors) in md_set_array_sectors() argument
5546 mddev->array_sectors = array_sectors; in md_set_array_sectors()
[all …]
Draid5.c5389 if (mddev->array_sectors > in raid5_resize()
5392 set_capacity(mddev->gendisk, mddev->array_sectors); in raid5_resize()
5488 < mddev->array_sectors) { in raid5_start_reshape()
5613 set_capacity(mddev->gendisk, mddev->array_sectors); in raid5_finish_reshape()
5718 while (chunksect && (mddev->array_sectors & (chunksect-1))) in raid5_takeover_raid1()
5783 if (mddev->array_sectors & (new_chunk-1)) in raid5_check_reshape()
5817 if (mddev->array_sectors & (new_chunk-1)) in raid6_check_reshape()
Draid1.c2061 if (mddev->array_sectors > raid1_size(mddev, sectors, 0)) in raid1_resize()
2063 set_capacity(mddev->gendisk, mddev->array_sectors); in raid1_resize()