summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorGeliang Tang2016-01-15 00:22:01 +0100
committerLinus Torvalds2016-01-15 01:00:49 +0100
commitd72ee911130631b50a8ccc615a7d4622c2062194 (patch)
treeff45cfa64b04c076deceaaf1fe6ef4d9f31d3e39 /mm
parentDocumentation/filesystems: describe the shared memory usage/accounting (diff)
downloadkernel-qcow2-linux-d72ee911130631b50a8ccc615a7d4622c2062194.tar.gz
kernel-qcow2-linux-d72ee911130631b50a8ccc615a7d4622c2062194.tar.xz
kernel-qcow2-linux-d72ee911130631b50a8ccc615a7d4622c2062194.zip
mm: move lru_to_page to mm_inline.h
Move lru_to_page() from internal.h to mm_inline.h. Signed-off-by: Geliang Tang <geliangtang@163.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/internal.h2
-rw-r--r--mm/readahead.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 016452d2fede..38e24b89e4c4 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -119,8 +119,6 @@ extern int isolate_lru_page(struct page *page);
extern void putback_lru_page(struct page *page);
extern bool zone_reclaimable(struct zone *zone);
-#define lru_to_page(_head) (list_entry((_head)->prev, struct page, lru))
-
/*
* in mm/rmap.c:
*/
diff --git a/mm/readahead.c b/mm/readahead.c
index 0aff760b09d4..20e58e820e44 100644
--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -17,6 +17,7 @@
#include <linux/pagemap.h>
#include <linux/syscalls.h>
#include <linux/file.h>
+#include <linux/mm_inline.h>
#include "internal.h"