Lines Matching refs:safepos
5959 sector_t writepos, readpos, safepos;
6005 safepos = conf->reshape_safe;
6006 sector_div(safepos, data_disks);
6011 safepos += reshape_sectors;
6014 /* readpos and safepos are worst-case calculations.
6019 safepos -= min_t(sector_t, reshape_sectors, safepos);
6039 * 'safepos' is the least address recorded in the metadata as having
6042 * increasing the safepos/readpos if diff is negative, or
6048 * Otherwise if 'safepos' is behind 'writepos', then we really need to
6049 * update the metadata to advance 'safepos' to match 'readpos' so that
6051 * So we insist on updating metadata if safepos is behind writepos and
6058 safepos += -conf->min_offset_diff;
6064 ? (safepos > writepos && readpos < writepos)
6065 : (safepos < writepos && readpos > writepos)) ||