userfaultfd-use-vma_is_anonymous.patch removed from -mm tree
The patch titled
Subject: userfaultfd: use vma_is_anonymous
has been removed from the -mm tree. Its filename was
userfaultfd-use-vma_is_anonymous.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrea Arcangeli <[email protected]>
Subject: userfaultfd: use vma_is_anonymous
Cleanup the vma->vm_ops usage.
Side note: it would be more robust if vma_is_anonymous() would also check that vm_flags hasn't VM_PFNMAP set.
---
fs/userfaultfd.c | 8 ++++---- mm/userfaultfd.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
fs/userfaultfd.c renamed from fs/userfaultfd.c~userfaultfd-use-vma_is_anonymous +4 -4
@@ -830,7 +830,7 @@ static int userfaultfd_register(struct u/* check not compatible vmas */ ret = -EINVAL ; -if (cur->vm_ops) +if (!vma_is_anonymous (cur)) goto out_unlock;/*
@@ -855,7 +855,7 @@ static int userfaultfd_register(struct u do { cond_resched(); - BUG_ON(vma->vm_ops); + BUG_ON(!vma_is_anonymous(vma)); BUG_ON(vma->vm_userfaultfd_ctx.ctx && vma->vm_userfaultfd_ctx.ctx != ctx);
@@ -981,7 +981,7 @@ static int userfaultfd_unregister(struct* provides for more strict behavior to notice * unregistration errors. */ -if (cur->vm_ops) +if (!vma_is_anonymous (cur)) goto out_unlock; found = true;
@@ -995,7 +995,7 @@ static int userfaultfd_unregister(struct do { cond_resched(); - BUG_ON(vma->vm_ops); + BUG_ON(!vma_is_anonymous(vma)); /* * Nothing to do: this vma is already registered into this
mm/userfaultfd.c renamed from mm/userfaultfd.c~userfaultfd-use-vma_is_anonymous +1 -1
@@ -197,7 +197,7 @@ retry:* FIXME: only allow copying on anonymous vmas, tmpfs should * be added. */ -if (dst_vma->vm_ops) +if (!vma_is_anonymous (dst_vma)) goto out_unlock;/*
_
Patches currently in -mm which might be from [email protected] are
userfaultfd-mcopy_atomic-return-enoent-when-no-compatible-vma-found-fix-2.patch userfaultfd-mcopy_atomic-return-enoent-when-no-compatible-vma-found-fix-2-fix-fix.patch