Fix collect_filemap borrow flags check

Submitted by Pavel Emelianov on June 2, 2017, 3:44 p.m.

Details

Message ID 74b3be22-8ce7-7402-30aa-b999f1c0fc24@virtuozzo.com
State Rejected
Series "Fix collect_filemap borrow flags check"
Headers show

Commit Message

Pavel Emelianov June 2, 2017, 3:44 p.m.
Runaway from commit 5a1e1aac "vma: Do not open similar VMAs multiple times"

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>

---

Patch hide | download patch | download mbox

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;