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>
This commit is contained in:
Geliang Tang
2016-01-14 15:22:01 -08:00
committed by Linus Torvalds
parent 0bc126d460
commit d72ee91113
3 changed files with 3 additions and 2 deletions

View 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