Commit 531c4aa4 authored by Eugene Batalov's avatar Eugene Batalov Committed by Pavel Emelyanov

mem: export should_dump_page() from mem.c

We'll use it to decide should we dump anon shmem page or not.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent ebae2651
......@@ -2,6 +2,8 @@
#define __CR_MEM_H__
#include <stdbool.h>
#include "asm/int.h"
#include "vma.pb-c.h"
struct parasite_ctl;
struct vm_area_list;
......@@ -32,4 +34,5 @@ int open_vmas(struct pstree_item *t);
int prepare_vmas(struct pstree_item *t, struct task_restore_args *ta);
int unmap_guard_pages(struct pstree_item *t);
int prepare_mappings(struct pstree_item *t);
bool should_dump_page(VmaEntry *vmae, u64 pme);
#endif /* __CR_MEM_H__ */
......@@ -78,7 +78,7 @@ unsigned int dump_pages_args_size(struct vm_area_list *vmas)
(vmas->priv_size + 1) * sizeof(struct iovec);
}
static inline bool should_dump_page(VmaEntry *vmae, u64 pme)
bool should_dump_page(VmaEntry *vmae, u64 pme)
{
#ifdef CONFIG_VDSO
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment