mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
aio: Consider AIO pages as "should be dumped"
We were luckely on built-in tests, because always AIO pages were present, and, thus, they are dumped. But AIO pages are not guaranteed to be present in common case. This patch makes AIO pages are dumped certanly. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
51ff6240e4
commit
c2ff0418e1
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ static inline bool should_dump_page(VmaEntry *vmae, u64 pme)
|
|||
*/
|
||||
if (vma_entry_is(vmae, VMA_FILE_PRIVATE) && (pme & PME_FILE))
|
||||
return false;
|
||||
if (vma_entry_is(vmae, VMA_AREA_AIORING))
|
||||
return true;
|
||||
if (pme & PME_SWAP)
|
||||
return true;
|
||||
if ((pme & PME_PRESENT) && ((pme & PME_PFRAME_MASK) != kdat.zero_page_pfn))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue