From: Andrew Morton Cc: Hugh Dickins Signed-off-by: Andrew Morton --- mm/fremap.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -puN mm/fremap.c~fix-update_mmu_cache-in-fremapc-fix mm/fremap.c --- 25/mm/fremap.c~fix-update_mmu_cache-in-fremapc-fix Fri May 26 16:48:49 2006 +++ 25-akpm/mm/fremap.c Fri May 26 16:48:49 2006 @@ -115,6 +115,13 @@ int install_file_pte(struct mm_struct *m set_pte_at(mm, addr, pte, pgoff_to_pte(pgoff)); pte_val = *pte; + /* + * We don't need to run update_mmu_cache() here because the "file pte" + * being installed by install_file_pte() is not a real pte - it's a + * non-present entry (like a swap entry), noting what file offset should + * be mapped there when there's a fault (in a non-linear vma where + * that's not obvious). + */ pte_unmap_unlock(pte, ptl); err = 0; out: _