Skip to content

Commit

Permalink
[PATCH] uml: don't redundantly mark pte as newpage in pte_modify
Browse files Browse the repository at this point in the history
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 <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Sep 23, 2005
1 parent a8bfb94 commit 69e1e68
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/asm-um/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 69e1e68

Please sign in to comment.