[CRIU] [PATCH 03/10] page-read: add reuse posibility of pagemap2iovec

Tikhomirov Pavel snorcht at gmail.com
Tue Nov 19 02:28:22 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 5ad6325..dc8721b 100644
--- a/include/page-read.h
+++ b/include/page-read.h
@@ -66,6 +66,7 @@ struct page_read {
 };
 
 int open_page_read(int pid, struct page_read *);
+inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov);
 
 #define DO_NOT_PRINT_ERROR 1
 #endif
diff --git a/page-read.c b/page-read.c
index a25590a..1092b1d 100644
--- a/page-read.c
+++ b/page-read.c
@@ -37,7 +37,7 @@ static int read_page(struct page_read *pr, unsigned long vaddr, void *buf)
 	return 1;
 }
 
-static inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov)
+inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov)
 {
 	iov->iov_base = decode_pointer(pe->vaddr);
 	iov->iov_len = pe->nr_pages * PAGE_SIZE;
-- 
1.7.9.5



More information about the CRIU mailing list