Searched refs:safepos (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/md/
H A Draid5.c5347 sector_t writepos, readpos, safepos; reshape_request() local
5389 safepos = conf->reshape_safe; reshape_request()
5390 sector_div(safepos, data_disks); reshape_request()
5394 safepos += reshape_sectors; reshape_request()
5398 safepos -= min_t(sector_t, reshape_sectors, safepos); reshape_request()
5418 * 'safepos' is the least address recorded in the metadata as having reshape_request()
5421 * increasing the safepos/readpos if diff is negative, or reshape_request()
5427 * Otherwise if 'safepos' is behind 'writepos', then we really need to reshape_request()
5428 * update the metadata to advance 'safepos' to match 'readpos' so that reshape_request()
5430 * So we insist on updating metadata if safepos is behind writepos and reshape_request()
5437 safepos += -conf->min_offset_diff; reshape_request()
5443 ? (safepos > writepos && readpos < writepos) reshape_request()
5444 : (safepos < writepos && readpos > writepos)) || reshape_request()

Completed in 96 milliseconds