[PATCH] uml: fix condition in tlb flush
Avoid setting w = 0 twice. Spotted this (trivial) thing which is needed for another patch. 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>
This commit is contained in:
committed by
Linus Torvalds
parent
546fe1cbf9
commit
dc36abf34e
@@ -193,11 +193,11 @@ void fix_range_common(struct mm_struct *mm, unsigned long start_addr,
|
|||||||
r = pte_read(*npte);
|
r = pte_read(*npte);
|
||||||
w = pte_write(*npte);
|
w = pte_write(*npte);
|
||||||
x = pte_exec(*npte);
|
x = pte_exec(*npte);
|
||||||
if(!pte_dirty(*npte))
|
|
||||||
w = 0;
|
|
||||||
if (!pte_young(*npte)) {
|
if (!pte_young(*npte)) {
|
||||||
r = 0;
|
r = 0;
|
||||||
w = 0;
|
w = 0;
|
||||||
|
} else if (!pte_dirty(*npte)) {
|
||||||
|
w = 0;
|
||||||
}
|
}
|
||||||
if(force || pte_newpage(*npte)){
|
if(force || pte_newpage(*npte)){
|
||||||
if(pte_present(*npte))
|
if(pte_present(*npte))
|
||||||
|
Reference in New Issue
Block a user