[CRIU] [PATCH 06/14]v3 page-read: make function seek_pagemap_page can be used in dedup

Tikhomirov Pavel snorcht at gmail.com
Tue Dec 17 07:27:05 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 af222d6..8ea8c40 100644
--- a/include/page-read.h
+++ b/include/page-read.h
@@ -68,4 +68,5 @@ struct page_read {
 
 extern int open_page_read(int pid, struct page_read *);
 extern inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov);
+extern int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, bool warn);
 #endif /* __CR_PAGE_READ_H__ */
diff --git a/page-read.c b/page-read.c
index b4676ff..7fdcce6 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, bool warn)
+int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, bool warn)
 {
 	int ret;
 	struct iovec iov;
-- 
1.7.9.5



More information about the CRIU mailing list