Commit bf633670 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-pages: stop checking for zero pagemaps

A page that explicitly mapped to zero pfn or a page that is not present
should be treated in the same way, therefore the zero pagemaps are not
required and will be removed by the following commits.

travis-ci: success for revert zero pagemaps
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 0019a68c
......@@ -588,7 +588,7 @@ static int uffd_seek_or_zero_pages(struct lazy_pages_info *lpi, __u64 address,
lpi->pr.reset(&lpi->pr);
ret = lpi->pr.seek_pagemap(&lpi->pr, address);
if (!ret || pagemap_zero(lpi->pr.pe))
if (!ret)
return uffd_zero(lpi, address, nr);
lpi->pr.skip_pages(&lpi->pr, address - lpi->pr.pe->vaddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment