Lines Matching defs:readpos
6258 sector_t writepos, readpos, safepos;
6302 readpos = conf->reshape_progress;
6303 sector_div(readpos, data_disks);
6311 readpos += reshape_sectors;
6315 /* readpos and safepos are worst-case calculations.
6319 readpos -= min_t(sector_t, reshape_sectors, readpos);
6343 * 'readpos' is the least advanced device address we might read.
6347 * increasing the safepos/readpos if diff is negative, or
6349 * If 'readpos' is then behind 'writepos', there is no way that we can
6354 * update the metadata to advance 'safepos' to match 'readpos' so that
6357 * readpos is beyond writepos.
6364 readpos += -conf->min_offset_diff;
6369 ? (safepos > writepos && readpos < writepos)
6370 : (safepos < writepos && readpos > writepos)) ||