userfaultfd-shmem-lock-the-page-before-adding-it-to-pagecache.patch removed from -mm tree
The patch titled
Subject: userfaultfd: shmem: lock the page before adding it to pagecache
has been removed from the -mm tree. Its filename was
userfaultfd-shmem-lock-the-page-before-adding-it-to-pagecache.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrea Arcangeli <[email protected]>
Subject: userfaultfd: shmem: lock the page before adding it to pagecache
A VM_BUG_ON triggered on the shmem selftest.
Signed-off-by Andrea Arcangeli <[email protected]>
Cc "Dr. David Alan Gilbert" <[email protected]>
Cc Hillf Danton <[email protected]>
Cc Michael Rapoport <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Pavel Emelyanov <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/shmem.c | 5 +++++ 1 file changed, 5 insertions(+)
mm/shmem.c renamed from mm/shmem.c~userfaultfd-shmem-lock-the-page-before-adding-it-to-pagecache +5 -0
@@ -2245,6 +2245,10 @@ int shmem_mcopy_atomic_pte(struct mm_str *pagep =NULL ; } +VM_BUG_ON (PageLocked (page) ||PageSwapBacked (page)); +__SetPageLocked (page); +__SetPageSwapBacked (page); + ret =mem_cgroup_try_charge (page, dst_mm, gfp, &memcg, false);if (ret) goto out_release;
@@ -2294,6 +2298,7 @@ out_release_uncharge_unlock: out_release_uncharge:mem_cgroup_cancel_charge (page, memcg, false); out_release: +unlock_page (page);put_page (page); out_dec_used_blocks:if (sbinfo->max_blocks)
_
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