mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
mm: move shmid to vma_entry (v2)
It will be used to restore shared mappings v2: clean up Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
7d10875076
commit
37a6c1fc88
@@ -135,7 +135,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
|
||||
goto err_bogus_mapping;
|
||||
vma_area->vma.flags |= MAP_ANONYMOUS;
|
||||
vma_area->vma.status |= VMA_ANON_SHARED;
|
||||
vma_area->shmid = st_buf.st_ino;
|
||||
vma_area->vma.shmid = st_buf.st_ino;
|
||||
|
||||
if (!strcmp(file_path, "/SYSV")) {
|
||||
pr_info("path: %s\n", file_path);
|
||||
@@ -153,7 +153,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
|
||||
*/
|
||||
if (vma_area->vma.flags & MAP_SHARED) {
|
||||
vma_area->vma.status |= VMA_ANON_SHARED;
|
||||
vma_area->shmid = ino;
|
||||
vma_area->vma.shmid = ino;
|
||||
} else {
|
||||
vma_area->vma.status |= VMA_ANON_PRIVATE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user