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: MMI-PSA29.97-13-9~30381 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=390722baa7fc447b0a4f0c3c3f537ed056dbc944;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 f1b0d4871f3a..24f18fdee6e3 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; }