git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: more likely reclaim MADV_SEQUENTIAL mappings
[sfrench/cifs-2.6.git]
/
mm
/
memory.c
diff --git
a/mm/memory.c
b/mm/memory.c
index 7b9db658aca22b7a10c6c596657237f294dce2fe..99e8d5c7b3126a455d664942d0f90621ce6c8825 100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-767,8
+767,9
@@
static unsigned long zap_pte_range(struct mmu_gather *tlb,
else {
if (pte_dirty(ptent))
set_page_dirty(page);
- if (pte_young(ptent))
- SetPageReferenced(page);
+ if (pte_young(ptent) &&
+ likely(!VM_SequentialReadHint(vma)))
+ mark_page_accessed(page);
file_rss--;
}
page_remove_rmap(page, vma);