+28
−40
Loading
When starting a swap upgrade, the total size of data to be swapped is calculated only at the beginning and saved to the trailer. This avoids having to use complicated heuristics to find the total swap size, which might depend on data that was already moved. When resuming a swap, the size is found in the trailer and used. Also includes some small comment fixes and refactors. Signed-off-by:Fabio Utzig <utzig@apache.org> Signed-off-by:
David Brown <david.brown@linaro.org>
CRA Git | Maintained and supported by SUSTech CRA and CCSE