Searched refs:reshape_sectors (Results 1 – 2 of 2) sorted by relevance
2812 sector_t reshape_sectors = 0; in _get_reshape_sectors() local2816 reshape_sectors = (rdev->data_offset > rdev->new_data_offset) ? in _get_reshape_sectors()2822 return max(reshape_sectors, (sector_t) rs->data_offset); in _get_reshape_sectors()2836 sector_t reshape_sectors = _get_reshape_sectors(rs); in rs_setup_reshape() local2930 rdev->sectors += reshape_sectors; in rs_setup_reshape()3000 sector_t sb_array_sectors, rdev_sectors, reshape_sectors; in raid_ctr() local3087 reshape_sectors = _get_reshape_sectors(rs); in raid_ctr()3089 resize = (rs->dev_sectors != rdev_sectors - reshape_sectors); in raid_ctr()3090 if (rs->dev_sectors > rdev_sectors - reshape_sectors) in raid_ctr()3181 if (reshape_sectors || rs_is_raid1(rs)) { in raid_ctr()
6283 int reshape_sectors; in reshape_request() local6315 reshape_sectors = max(conf->chunk_sectors, conf->prev_chunk_sectors); in reshape_request()6330 BUG_ON(writepos < reshape_sectors); in reshape_request()6331 writepos -= reshape_sectors; in reshape_request()6332 readpos += reshape_sectors; in reshape_request()6333 safepos += reshape_sectors; in reshape_request()6335 writepos += reshape_sectors; in reshape_request()6340 readpos -= min_t(sector_t, reshape_sectors, readpos); in reshape_request()6341 safepos -= min_t(sector_t, reshape_sectors, safepos); in reshape_request()6351 ~((sector_t)reshape_sectors - 1)) in reshape_request()[all …]