The patch titled read-write-migration-entries-make-mprotect-convert-write-migration fix has been removed from the -mm tree. Its filename is read-write-migration-entries-make-mprotect-convert-write-migration-fix.patch This patch was probably dropped from -mm because it has now been merged into a subsystem tree or into Linus's tree, or because it was folded into its parent patch in the -mm tree. From: Christoph Lameter <clameter@xxxxxxx> On Thu, 27 Apr 2006, Andrew Morton wrote: > For some reason David has just nuked PAGE_READONLY in sparc64, so this won't > compile. The check for PAGE_READONLY is not really essential. We just want to be safe for the unlikely case that if mprotect is called during page migration. If we simply reset all migration entries to read then nothing bad can happen. We just may have to take another fault to correct the permissions later. Signed-off-by: Christoph Lameter <clameter@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/mprotect.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff -puN mm/mprotect.c~read-write-migration-entries-make-mprotect-convert-write-migration-fix mm/mprotect.c --- 25/mm/mprotect.c~read-write-migration-entries-make-mprotect-convert-write-migration-fix Thu Apr 27 16:18:39 2006 +++ 25-akpm/mm/mprotect.c Thu Apr 27 16:18:39 2006 @@ -48,11 +48,14 @@ static void change_pte_range(struct mm_s set_pte_at(mm, addr, pte, ptent); lazy_mmu_prot_update(ptent); } else - if (!pte_file(oldpte) && pgprot_val(newprot) == - pgprot_val(PAGE_READONLY)) { + if (!pte_file(oldpte)) { swp_entry_t entry = pte_to_swp_entry(oldpte); if (is_write_migration_entry(entry)) { + /* + * A protection check would be difficult + * Just be safe and disable write. + */ make_migration_entry_read(&entry); set_pte_at(mm, addr, pte, swp_entry_to_pte(entry)); _ Patches currently in -mm which might be from clameter@xxxxxxx are origin.patch page-migration-make-do_swap_page-redo-the-fault.patch slab-extract-cache_free_alien-from-__cache_free.patch migration-remove-unnecessary-pageswapcache-checks.patch read-write-migration-entries-make-mprotect-convert-write-migration-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html