]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mm: move lru_to_page to mm_inline.h
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:22:01 +0000 (15:22 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
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>
include/linux/mm_inline.h
mm/internal.h
mm/readahead.c

index cf55945c83fb91d18bdaef4f0d893d6a94fa9034..712e8c37a200b243b2fff14c379c8acc621a662f 100644 (file)
@@ -100,4 +100,6 @@ static __always_inline enum lru_list page_lru(struct page *page)
        return lru;
 }
 
+#define lru_to_page(head) (list_entry((head)->prev, struct page, lru))
+
 #endif
index 016452d2fede4623bb9a7be2361de199e8588ada..38e24b89e4c400394212941a1789dd75bb902198 100644 (file)
@@ -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:
  */
index 0aff760b09d4a93bf8d6f292de434e4d574fce79..20e58e820e444d630b2ab807a369c53679eaa7ba 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/pagemap.h>
 #include <linux/syscalls.h>
 #include <linux/file.h>
+#include <linux/mm_inline.h>
 
 #include "internal.h"