From: Paolo 'Blaisorblade' Giarrusso Date: Fri, 23 Sep 2005 04:44:15 +0000 (-0700) Subject: [PATCH] uml: don't redundantly mark pte as newpage in pte_modify X-Git-Tag: v2.6.14-rc3~51^2~38 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=69e1e688f5698287b45fbff22a01de91b20804cd;p=linux-2.6-omap-h63xx.git [PATCH] uml: don't redundantly mark pte as newpage in pte_modify pte_modify marks a page as needing flush, which is redundant because the resulting PTE is still set with set_pte, which already handles that. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index ed06170e0ed..616d02b57ea 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h @@ -346,7 +346,6 @@ static inline void set_pte(pte_t *pteptr, pte_t pteval) static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) { pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); - if(pte_present(pte)) pte = pte_mknewpage(pte_mknewprot(pte)); return pte; }