Lines Matching refs:writepos
6221 sector_t writepos, readpos, safepos; in reshape_request() local
6263 writepos = conf->reshape_progress; in reshape_request()
6264 sector_div(writepos, new_data_disks); in reshape_request()
6270 BUG_ON(writepos < reshape_sectors); in reshape_request()
6271 writepos -= reshape_sectors; in reshape_request()
6275 writepos += reshape_sectors; in reshape_request()
6289 stripe_addr = writepos; in reshape_request()
6295 BUG_ON(writepos != sector_nr + reshape_sectors); in reshape_request()
6323 writepos += conf->min_offset_diff; in reshape_request()
6326 ? (safepos > writepos && readpos < writepos) in reshape_request()
6327 : (safepos < writepos && readpos > writepos)) || in reshape_request()