diff options
-rw-r--r-- | mm/filemap.c | 1 | ||||
-rw-r--r-- | mm/memory.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index f5769b4dc075..f9d88183f697 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1530,7 +1530,6 @@ retry_find: | |||
1530 | /* | 1530 | /* |
1531 | * Found the page and have a reference on it. | 1531 | * Found the page and have a reference on it. |
1532 | */ | 1532 | */ |
1533 | mark_page_accessed(page); | ||
1534 | ra->prev_pos = (loff_t)page->index << PAGE_CACHE_SHIFT; | 1533 | ra->prev_pos = (loff_t)page->index << PAGE_CACHE_SHIFT; |
1535 | vmf->page = page; | 1534 | vmf->page = page; |
1536 | return ret | VM_FAULT_LOCKED; | 1535 | return ret | VM_FAULT_LOCKED; |
diff --git a/mm/memory.c b/mm/memory.c index 7b9db658aca2..5e0e91cc6b67 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -768,7 +768,7 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, | |||
768 | if (pte_dirty(ptent)) | 768 | if (pte_dirty(ptent)) |
769 | set_page_dirty(page); | 769 | set_page_dirty(page); |
770 | if (pte_young(ptent)) | 770 | if (pte_young(ptent)) |
771 | SetPageReferenced(page); | 771 | mark_page_accessed(page); |
772 | file_rss--; | 772 | file_rss--; |
773 | } | 773 | } |
774 | page_remove_rmap(page, vma); | 774 | page_remove_rmap(page, vma); |