From: Al Viro Date: Sat, 30 Dec 2006 00:48:35 +0000 (-0800) Subject: [PATCH] page_mkclean_one(): fix call to set_pte_at() X-Git-Tag: v2.6.20-rc3~32 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6e88e671ac12888df2d533dd4ddef705431a32a;p=linux-2.6 [PATCH] page_mkclean_one(): fix call to set_pte_at() (akpm: macros are wonderful) Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/rmap.c b/mm/rmap.c index 57306fa011..669acb22b5 100644 --- 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; }