aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2006-01-06 03:11:13 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:27 -0500
commit41e9b63b35b52cf918a4ffdb8d77862ab824aa8b (patch)
tree472ef8bb097f4e090f5fc95100acdbc77f515087 /mm
parent9617d95e6e9ffd883cf90a89724fe60d7ab22f9a (diff)
[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 <npiggin@suse.de> Cc: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index d7ca7de10f4d..7197f9bcd384 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,
1977 goto release; 1977 goto release;
1978 inc_mm_counter(mm, anon_rss); 1978 inc_mm_counter(mm, anon_rss);
1979 lru_cache_add_active(page); 1979 lru_cache_add_active(page);
1980 SetPageReferenced(page);
1981 page_add_new_anon_rmap(page, vma, address); 1980 page_add_new_anon_rmap(page, vma, address);
1982 } else { 1981 } else {
1983 /* Map the ZERO_PAGE - vm_page_prot is readonly */ 1982 /* Map the ZERO_PAGE - vm_page_prot is readonly */