[CRIU] [PATCH 04/10] page-read: make function seek_pagemap_page can be used in dedup

Tikhomirov Pavel snorcht at gmail.com
Tue Nov 19 02:28:23 PST 2013


Signed-off-by: Tikhomirov Pavel <snorcht at gmail.com>
---
 include/page-read.h |    1 +
 page-read.c         |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/page-read.h b/include/page-read.h
index dc8721b..231877a 100644
--- a/include/page-read.h
+++ b/include/page-read.h
@@ -67,6 +67,7 @@ struct page_read {
 
 int open_page_read(int pid, struct page_read *);
 inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov);
+int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, int flags);
 
 #define DO_NOT_PRINT_ERROR 1
 #endif
diff --git a/page-read.c b/page-read.c
index 1092b1d..4fe6b86 100644
--- a/page-read.c
+++ b/page-read.c
@@ -83,7 +83,7 @@ static void skip_pagemap_pages(struct page_read *pr, unsigned long len)
 	pr->cvaddr += len;
 }
 
-static int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, int flags)
+int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, int flags)
 {
 	int ret;
 	struct iovec iov;
-- 
1.7.9.5



More information about the CRIU mailing list