mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-05 00:03:33 +00:00
restorer: make it 2 lines shorter
Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
c1aad883de
commit
69ac4cef83
1 changed files with 2 additions and 4 deletions
|
|
@ -303,10 +303,8 @@ static u64 restore_mapping(const struct vma_entry *vma_entry)
|
|||
* MAP_ANONYMOUS should be eliminated so fd would
|
||||
* be taken into account by a kernel.
|
||||
*/
|
||||
if (vma_entry_is(vma_entry, VMA_ANON_SHARED)) {
|
||||
if (vma_entry->fd != -1UL)
|
||||
flags &= ~MAP_ANONYMOUS;
|
||||
}
|
||||
if (vma_entry_is(vma_entry, VMA_ANON_SHARED) && (vma_entry->fd != -1UL))
|
||||
flags &= ~MAP_ANONYMOUS;
|
||||
|
||||
/* A mapping of file with MAP_SHARED is up to date */
|
||||
if (vma_entry->fd == -1 || !(vma_entry->flags & MAP_SHARED))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue