mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
proc_parse: Set VMA_AREA_REGULAR where needed
This patch sets VMA_AREA_REGULAR on hugetlb and anon shmem VMAs since they can be handled the same way as other kinds of regular memory. Co-authored-by: Ivanq <imachug@yandex.ru> Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
This commit is contained in:
parent
2640489b7a
commit
b46d8429cc
1 changed files with 1 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ static int vma_get_mapfile_user(const char *fname, struct vma_area *vma, struct
|
|||
}
|
||||
|
||||
if (is_hugetlb_dev(vfi_dev, &hugetlb_flag) || is_anon_shmem_map(vfi_dev)) {
|
||||
vma->e->status |= VMA_AREA_REGULAR;
|
||||
if (!(vma->e->flags & MAP_SHARED))
|
||||
vma->e->status |= VMA_ANON_PRIVATE;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue