From: Nick Piggin 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 --- mm/memory.c | 1 - 1 files changed, 1 deletion(-) diff -puN mm/memory.c~mm-pfault-opt mm/memory.c --- devel/mm/memory.c~mm-pfault-opt 2005-12-22 05:08:51.000000000 -0800 +++ devel-akpm/mm/memory.c 2005-12-22 05:08:51.000000000 -0800 @@ -1977,7 +1977,6 @@ static int do_anonymous_page(struct mm_s 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 */ _