Commit 5b47af26 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: No need to check if vma_entry->fd == -1

Dumping procedure does check for VMA_ANON_SHARED
so the same should be done at restore time.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 1238d2dd
...@@ -324,8 +324,7 @@ self_len_end: ...@@ -324,8 +324,7 @@ self_len_end:
if (!(vma_entry_is(vma_entry, VMA_AREA_REGULAR))) if (!(vma_entry_is(vma_entry, VMA_AREA_REGULAR)))
continue; continue;
if (vma_entry_is(vma_entry, VMA_ANON_SHARED) && if (vma_entry_is(vma_entry, VMA_ANON_SHARED)) {
vma_entry->fd == -1UL) {
struct shmem_info *entry; struct shmem_info *entry;
entry = find_shmem_by_pid(args->shmems, entry = find_shmem_by_pid(args->shmems,
......
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