[CRIU] [PATCH] Fix collect_filemap borrow flags check
Pavel Emelyanov
xemul at virtuozzo.com
Fri Jun 2 18:44:10 MSK 2017
Runaway from commit 5a1e1aac "vma: Do not open similar VMAs multiple times"
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
diff --git a/criu/files-reg.c b/criu/files-reg.c
index e8ff68f..07fc102 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -1677,7 +1677,7 @@ int collect_filemap(struct vma_area *vma, struct vma_file_ctx *ctx)
return -1;
vma->vmfd = fd;
- if (ctx->vma && ctx->flags == vma->e->flags && ctx->fd == fd) {
+ if (ctx->vma && ctx->flags == vma->e->fdflags && ctx->fd == fd) {
vma->vm_open = borrow_filemap;
vma->fvma = ctx->vma;
ctx->vma->e->status |= VMA_NO_CLOSE;
More information about the CRIU
mailing list