From: Hugh Dickins Date: Tue, 6 Jan 2009 22:38:57 +0000 (-0800) Subject: mm: don't mark_page_accessed in shmem_fault X-Git-Tag: v3.12-rc1~16786 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=390722baa7fc447b0a4f0c3c3f537ed056dbc944;p=kernel%2Fkernel-generic.git mm: don't mark_page_accessed in shmem_fault Following "mm: don't mark_page_accessed in fault path", which now places a mark_page_accessed() in zap_pte_range(), we should remove the mark_page_accessed() from shmem_fault(). Signed-off-by: Hugh Dickins Cc: Nick Piggin Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/shmem.c b/mm/shmem.c index f1b0d48..24f18fd 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1444,7 +1444,6 @@ static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) if (error) return ((error == -ENOMEM) ? VM_FAULT_OOM : VM_FAULT_SIGBUS); - mark_page_accessed(vmf->page); return ret | VM_FAULT_LOCKED; }