[CRIU] [PATCH 04/12]v2 page-read: add reuse posibility of pagemap2iovec
Tikhomirov Pavel
snorcht at gmail.com
Mon Dec 16 02:55:28 PST 2013
Signed-off-by: Tikhomirov Pavel <snorcht at gmail.com>
---
include/page-read.h | 2 +-
page-read.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/page-read.h b/include/page-read.h
index 5a11348..af222d6 100644
--- a/include/page-read.h
+++ b/include/page-read.h
@@ -67,5 +67,5 @@ struct page_read {
};
extern int open_page_read(int pid, struct page_read *);
-
+extern inline void pagemap2iovec(PagemapEntry *pe, struct iovec *iov);
#endif /* __CR_PAGE_READ_H__ */
diff --git a/page-read.c b/page-read.c
index 31a4d3f..37af9ee 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