소스 검색

[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>
Nick Piggin 20 년 전
부모
커밋
41e9b63b35
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      mm/memory.c

+ 0 - 1
mm/memory.c

@@ -1977,7 +1977,6 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
 			goto release;
 			goto release;
 		inc_mm_counter(mm, anon_rss);
 		inc_mm_counter(mm, anon_rss);
 		lru_cache_add_active(page);
 		lru_cache_add_active(page);
-		SetPageReferenced(page);
 		page_add_new_anon_rmap(page, vma, address);
 		page_add_new_anon_rmap(page, vma, address);
 	} else {
 	} else {
 		/* Map the ZERO_PAGE - vm_page_prot is readonly */
 		/* Map the ZERO_PAGE - vm_page_prot is readonly */