]> err.no Git - linux-2.6/commitdiff
[PATCH] page_mkclean_one(): fix call to set_pte_at()
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 30 Dec 2006 00:48:35 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:42 +0000 (10:56 -0800)
(akpm: macros are wonderful)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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;
        }