Skip to contentSkip to conversation

Fix set_pte_at arguments in page_mkclean_one

PATCH In review Balbir Singh 2 participants 2 messages Dec 29, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix set_pte_at arguments in page_mkclean_one

page_mkclean_one() passes vma instead of the expected mm as argument1 to set_pte_at. Below is a simple fix (tested by compiling the kernel on powerpc). Please ignore the patch, if a fix has already been applied.

---

 mm/rmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/rmap.c renamed from mm/rmap.c~fix-set-pte-in-page_mkclean_one +1 -1
diff -puN mm/rmap.c~fix-set-pte-in-page_mkclean_one mm/rmap.c
@@ -461,7 +461,7 @@ static int page_mkclean_one(struct page 
 		entry = ptep_clear_flush(vma, address, pte);
 		entry = pte_wrprotect(entry);
 		entry = pte_mkclean(entry);
-		set_pte_at(vma, address, pte, entry);
+		set_pte_at(mm, address, pte, entry);
 		lazy_mmu_prot_update(entry);
 		ret = 1;
 	}

_

Signature · 3 lines
	Balbir Singh,
	Linux Technology Center,
	IBM Software Labs