mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
v3 page-read: make function seek_pagemap_page can be used in dedup
Signed-off-by: Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
0f90727ddb
commit
6336d537ac
@@ -68,4 +68,5 @@ struct page_read {
|
||||
|
||||
extern int open_page_read(int pid, struct page_read *);
|
||||
extern 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__ */
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user