Commit 58cb8b27 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pagemap: Move PME_ constants to the header

This constants are system wide, so move them to mem.h
header for reuse sake.

[ xemul: It was kerndat.h in the patch ]
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 52509a20
......@@ -11,4 +11,9 @@ extern int parasite_dump_pages_seized(struct parasite_ctl *ctl,
struct vm_area_list *vma_area_list,
struct page_pipe **pp);
#define PME_PRESENT (1ULL << 63)
#define PME_SWAP (1ULL << 62)
#define PME_FILE (1ULL << 61)
#define PME_SOFT_DIRTY (1ULL << 55)
#endif /* __CR_MEM_H__ */
......@@ -52,8 +52,6 @@ static int kerndat_get_shmemdev(void)
* this functionality under CONFIG_MEM_SOFT_DIRTY option.
*/
#define PME_SOFT_DIRTY (1Ull << 55)
bool kerndat_has_dirty_track = false;
int kerndat_get_dirty_track(void)
......
......@@ -16,11 +16,6 @@
#include "protobuf.h"
#include "protobuf/pagemap.pb-c.h"
#define PME_PRESENT (1ULL << 63)
#define PME_SWAP (1ULL << 62)
#define PME_FILE (1ULL << 61)
#define PME_SOFT_DIRTY (1Ull << 55)
/*
* On dump we suck in the whole parent pagemap. Then, when observing
* a page with soft-dirty bit cleared (i.e. -- not modified) we check
......
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