From: Nick Piggin Date: Fri, 6 Jan 2006 08:11:13 +0000 (-0800) Subject: [PATCH] mm: pfault optimisation X-Git-Tag: v2.6.16-rc1~936^2~247 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=41e9b63b35b52cf918a4ffdb8d77862ab824aa8b;p=linux-2.6-omap-h63xx.git [PATCH] mm: pfault optimisation This atomic operation is superfluous: the pte will be added with the referenced bit set, and the page will be referenced through this mapping after the page fault handler returns anyway. Signed-off-by: Nick Piggin Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index d7ca7de10f4..7197f9bcd38 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1977,7 +1977,6 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, goto release; inc_mm_counter(mm, anon_rss); lru_cache_add_active(page); - SetPageReferenced(page); page_add_new_anon_rmap(page, vma, address); } else { /* Map the ZERO_PAGE - vm_page_prot is readonly */