Lines Matching defs:readpos
6281 sector_t writepos, readpos, safepos;
6325 readpos = conf->reshape_progress;
6326 sector_div(readpos, data_disks);
6332 readpos += reshape_sectors;
6336 /* readpos and safepos are worst-case calculations.
6340 readpos -= min_t(sector_t, reshape_sectors, readpos);
6360 * 'readpos' is the least advanced device address we might read.
6364 * increasing the safepos/readpos if diff is negative, or
6366 * If 'readpos' is then behind 'writepos', there is no way that we can
6371 * update the metadata to advance 'safepos' to match 'readpos' so that
6374 * readpos is beyond writepos.
6381 readpos += -conf->min_offset_diff;
6386 ? (safepos > writepos && readpos < writepos)
6387 : (safepos < writepos && readpos > writepos)) ||