[PATCH] page_mkclean_one(): fix call to set_pte_at()
authorAl Viro <[email protected]>
Sat, 30 Dec 2006 00:48:35 +0000 (16:48 -0800)
committerLinus Torvalds <[email protected]>
Sat, 30 Dec 2006 18:56:42 +0000 (10:56 -0800)
(akpm: macros are wonderful)

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/rmap.c

index 57306fa0114dfba74a081affcc4f988b1b05b310..669acb22b572190ff2dcc6544c968bbd7516859e 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -452,7 +452,7 @@ static int page_mkclean_one(struct page *page, struct vm_area_struct *vma)
                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;
        }