[CRIU] [PATCH 05/12]v2 page-read: make function seek_pagemap_page can be used in dedup
Tikhomirov Pavel
snorcht at gmail.com
Mon Dec 16 02:55:29 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..a12cbee 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, int flags);
#endif /* __CR_PAGE_READ_H__ */
diff --git a/page-read.c b/page-read.c
index 37af9ee..01a387e 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