Lines Matching defs:readpos
5959 sector_t writepos, readpos, safepos;
6003 readpos = conf->reshape_progress;
6004 sector_div(readpos, data_disks);
6010 readpos += reshape_sectors;
6014 /* readpos and safepos are worst-case calculations.
6018 readpos -= min_t(sector_t, reshape_sectors, readpos);
6038 * 'readpos' is the least advanced device address we might read.
6042 * increasing the safepos/readpos if diff is negative, or
6044 * If 'readpos' is then behind 'writepos', there is no way that we can
6049 * update the metadata to advance 'safepos' to match 'readpos' so that
6052 * readpos is beyond writepos.
6059 readpos += -conf->min_offset_diff;
6064 ? (safepos > writepos && readpos < writepos)
6065 : (safepos < writepos && readpos > writepos)) ||