[CRIU] [PATCH 01/11] Rename uffd_listen to cr_lazy_pages
Mike Rapoport
rppt at linux.vnet.ibm.com
Sun Apr 10 23:19:44 PDT 2016
Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
criu/crtools.c | 2 +-
criu/include/crtools.h | 4 ++--
criu/uffd.c | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/criu/crtools.c b/criu/crtools.c
index 5d9647a..d4c5731 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -759,7 +759,7 @@ int main(int argc, char *argv[], char *envp[])
}
if (!strcmp(argv[optind], "lazy-pages"))
- return uffd_listen() != 0;
+ return cr_lazy_pages() != 0;
if (!strcmp(argv[optind], "check"))
return cr_check() != 0;
diff --git a/criu/include/crtools.h b/criu/include/crtools.h
index 6de163b..e58b2be 100644
--- a/criu/include/crtools.h
+++ b/criu/include/crtools.h
@@ -27,9 +27,9 @@ extern int cr_check(void);
extern int cr_exec(int pid, char **opts);
extern int cr_dedup(void);
#ifdef CONFIG_HAS_UFFD
-extern int uffd_listen(void);
+extern int cr_lazy_pages(void);
#else
-static inline int uffd_listen() { return 0; };
+static inline int cr_lazy_pages() { return 0; };
#endif /* CONFIG_HAS_UFFD */
extern int prepare_task_entries(void);
diff --git a/criu/uffd.c b/criu/uffd.c
index 03c4b71..3752a8c 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -634,7 +634,8 @@ out:
return ret;
}
-int uffd_listen()
+
+int cr_lazy_pages()
{
int uffd;
int uffd_flags;
--
1.9.1
More information about the CRIU
mailing list