mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
lazy-pages: drop _page suffix from uffd_{copy,zero}_page
travis-ci: success for uffd: A new set of improvements Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
1bdd3e46eb
commit
f45229886e
@@ -512,7 +512,7 @@ out:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int uffd_copy_page(struct lazy_pages_info *lpi, __u64 address)
|
static int uffd_copy(struct lazy_pages_info *lpi, __u64 address)
|
||||||
{
|
{
|
||||||
struct uffdio_copy uffdio_copy;
|
struct uffdio_copy uffdio_copy;
|
||||||
int rc;
|
int rc;
|
||||||
@@ -544,7 +544,7 @@ static int uffd_copy_page(struct lazy_pages_info *lpi, __u64 address)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int uffd_zero_page(struct lazy_pages_info *lpi, __u64 address)
|
static int uffd_zero(struct lazy_pages_info *lpi, __u64 address)
|
||||||
{
|
{
|
||||||
struct uffdio_zeropage uffdio_zeropage;
|
struct uffdio_zeropage uffdio_zeropage;
|
||||||
unsigned long ps = page_size();
|
unsigned long ps = page_size();
|
||||||
@@ -577,7 +577,7 @@ static int uffd_handle_page(struct lazy_pages_info *lpi, __u64 address)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (pagemap_zero(lpi->pr.pe))
|
if (pagemap_zero(lpi->pr.pe))
|
||||||
return uffd_zero_page(lpi, address);
|
return uffd_zero(lpi, address);
|
||||||
|
|
||||||
if (opts.use_page_server)
|
if (opts.use_page_server)
|
||||||
ret = get_remote_pages(lpi->pid, address, 1, lpi->buf);
|
ret = get_remote_pages(lpi->pid, address, 1, lpi->buf);
|
||||||
@@ -589,7 +589,7 @@ static int uffd_handle_page(struct lazy_pages_info *lpi, __u64 address)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return uffd_copy_page(lpi, address);
|
return uffd_copy(lpi, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_remaining_pages(struct lazy_pages_info *lpi)
|
static int handle_remaining_pages(struct lazy_pages_info *lpi)
|
||||||
|
Reference in New Issue
Block a user