aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-07-08 19:00:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 13:33:23 -0400
commit64363aad5ff1b878230e91223038c26a2205bff3 (patch)
tree8f8bb770645e634d55fc390ec4428b1818eccd10 /mm/rmap.c
parent73b44ff43c4b3cf517826da03c51948593f88753 (diff)
mm: remove unused VM_<READfoo> macros and expand other in-place
These VM_<READfoo> macros aren't used very often and three of them aren't used at all. Expand the ones that are used in-place, and remove all the now unused #define VM_<foo> macros. VM_READHINTMASK, VM_NormalReadHint and VM_ClearReadHint were added just before 2.4 and appears have never been used. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index e22ceeb6e5ec..cd356df4f71a 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -720,7 +720,7 @@ int page_referenced_one(struct page *page, struct vm_area_struct *vma,
720 * mapping is already gone, the unmap path will have 720 * mapping is already gone, the unmap path will have
721 * set PG_referenced or activated the page. 721 * set PG_referenced or activated the page.
722 */ 722 */
723 if (likely(!VM_SequentialReadHint(vma))) 723 if (likely(!(vma->vm_flags & VM_SEQ_READ)))
724 referenced++; 724 referenced++;
725 } 725 }
726 pte_unmap_unlock(pte, ptl); 726 pte_unmap_unlock(pte, ptl);