[CRIU] [RFC PATCH 11/16] criu: lazy-pages: drop _page suffix from uffd_{copy, zero}_page

Mike Rapoport rppt at linux.vnet.ibm.com
Tue Sep 27 06:42:12 PDT 2016


Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/uffd.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/criu/uffd.c b/criu/uffd.c
index b949d1c..83582d0 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -501,7 +501,7 @@ static int get_page(struct lazy_pages_info *lpi, unsigned long addr)
 	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;
 	int rc;
@@ -540,7 +540,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;
 	unsigned long ps = page_size();
@@ -566,9 +566,9 @@ static int uffd_handle_page(struct lazy_pages_info *lpi, __u64 address)
 {
 	int rc;
 
-	rc = uffd_copy_page(lpi, address);
+	rc = uffd_copy(lpi, address);
 	if (rc == 0)
-		rc = uffd_zero_page(lpi, address);
+		rc = uffd_zero(lpi, address);
 
 	return rc;
 }
-- 
1.9.1



More information about the CRIU mailing list