mm-page_vma_mapped_walk-use-pmde-for-pvmw-pmd.patch removed from -mm tree
The patch titled
Subject: mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd
has been removed from the -mm tree. Its filename was
mm-page_vma_mapped_walk-use-pmde-for-pvmw-pmd.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd
page_vma_mapped_walk() cleanup: re-evaluate pmde after taking lock, then use it in subsequent tests, instead of repeatedly dereferencing pointer.
Signed-off-by Hugh Dickins <[email protected]>
Reviewed-by Peter Xu <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Ralph Campbell <[email protected]>
Cc Wang Yugui <[email protected]>
Cc Will Deacon <[email protected]>
Cc Yang Shi <[email protected]>
Cc Zi Yan <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/page_vma_mapped.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
mm/page_vma_mapped.c renamed from mm/page_vma_mapped.c~mm-page_vma_mapped_walk-use-pmde-for-pvmw-pmd +6 -5
@@ -191,18 +191,19 @@ restart: pmde =READ_ONCE (*pvmw->pmd);if (pmd_trans_huge (pmde) ||is_pmd_migration_entry (pmde)) { pvmw->ptl =pmd_lock (mm, pvmw->pmd); -if (likely (pmd_trans_huge (*pvmw->pmd))) { + pmde = *pvmw->pmd; +if (likely (pmd_trans_huge (pmde))) {if (pvmw->flags &PVMW_MIGRATION )return not_found (pvmw); -if (pmd_page (*pvmw->pmd) != page) +if (pmd_page (pmde) != page)return not_found (pvmw);return true; - }else if (!pmd_present (*pvmw->pmd)) { + }else if (!pmd_present (pmde)) {if (thp_migration_supported ()) {if (!(pvmw->flags &PVMW_MIGRATION ))return not_found (pvmw); -if (is_migration_entry (pmd_to_swp_entry (*pvmw->pmd))) { -swp_entry_t entry =pmd_to_swp_entry (*pvmw->pmd); +if (is_migration_entry (pmd_to_swp_entry (pmde))) { +swp_entry_t entry =pmd_to_swp_entry (pmde);if (migration_entry_to_page (entry) != page)return not_found (pvmw);
_
Patches currently in -mm which might be from [email protected] are
mm-thp-remap_page-is-only-needed-on-anonymous-thp.patch mm-hwpoison_user_mappings-try_to_unmap-with-ttu_sync.patch