Searched refs:reshape_sectors (Results 1 – 2 of 2) sorted by relevance
2832 sector_t reshape_sectors = 0; in _get_reshape_sectors() local2836 reshape_sectors = (rdev->data_offset > rdev->new_data_offset) ? in _get_reshape_sectors()2842 return max(reshape_sectors, (sector_t) rs->data_offset); in _get_reshape_sectors()2856 sector_t reshape_sectors = _get_reshape_sectors(rs); in rs_setup_reshape() local2950 rdev->sectors += reshape_sectors; in rs_setup_reshape()3011 sector_t calculated_dev_sectors, rdev_sectors, reshape_sectors; in raid_ctr() local3095 reshape_sectors = _get_reshape_sectors(rs); in raid_ctr()3097 …resize = calculated_dev_sectors != (reshape_sectors ? rdev_sectors - reshape_sectors : rdev_sector… in raid_ctr()3187 if (reshape_sectors || rs_is_raid1(rs)) { in raid_ctr()
5775 int reshape_sectors; in reshape_request() local5807 reshape_sectors = max(conf->chunk_sectors, conf->prev_chunk_sectors); in reshape_request()5822 BUG_ON(writepos < reshape_sectors); in reshape_request()5823 writepos -= reshape_sectors; in reshape_request()5824 readpos += reshape_sectors; in reshape_request()5825 safepos += reshape_sectors; in reshape_request()5827 writepos += reshape_sectors; in reshape_request()5832 readpos -= min_t(sector_t, reshape_sectors, readpos); in reshape_request()5833 safepos -= min_t(sector_t, reshape_sectors, safepos); in reshape_request()5843 ~((sector_t)reshape_sectors - 1)) in reshape_request()[all …]