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:
Kirill Tkhai 2016-05-24 19:42:00 +03:00 committed by Pavel Emelyanov
parent 51ff6240e4
commit c2ff0418e1

View file

@ -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))