[CRIU] [PATCH 4/4] criu: pagemap: make punch_hole static

Mike Rapoport rppt at linux.vnet.ibm.com
Thu Jun 23 09:46:53 PDT 2016


Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/include/pagemap.h | 1 -
 criu/pagemap.c         | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/criu/include/pagemap.h b/criu/include/pagemap.h
index 4c6d21e..0c731ce 100644
--- a/criu/include/pagemap.h
+++ b/criu/include/pagemap.h
@@ -91,5 +91,4 @@ extern void pagemap2iovec(PagemapEntry *pe, struct iovec *iov);
 extern void iovec2pagemap(struct iovec *iov, PagemapEntry *pe);
 
 extern int dedup_one_iovec(struct page_read *pr, struct iovec *iov);
-extern int punch_hole(struct page_read *pr, unsigned long off, unsigned long len, bool cleanup);
 #endif /* __CR_PAGE_READ_H__ */
diff --git a/criu/pagemap.c b/criu/pagemap.c
index 8a08097..93eb999 100644
--- a/criu/pagemap.c
+++ b/criu/pagemap.c
@@ -38,8 +38,8 @@ static inline bool can_extend_batch(struct iovec *bunch,
 		(bunch->iov_len == 0 || bunch->iov_len + len < MAX_BUNCH_SIZE * PAGE_SIZE);
 }
 
-int punch_hole(struct page_read *pr, unsigned long off, unsigned long len,
-	       bool cleanup)
+static int punch_hole(struct page_read *pr, unsigned long off,
+		      unsigned long len, bool cleanup)
 {
 	int ret;
 	struct iovec * bunch = &pr->bunch;
-- 
1.9.1



More information about the CRIU mailing list