diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-15 02:22:01 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-15 03:00:49 +0300 |
commit | d72ee911130631b50a8ccc615a7d4622c2062194 (patch) | |
tree | ff45cfa64b04c076deceaaf1fe6ef4d9f31d3e39 /include/linux/mm_inline.h | |
parent | 0bc126d460453736c0e03d9da7ae0e9d4fcf86b3 (diff) | |
download | linux-d72ee911130631b50a8ccc615a7d4622c2062194.tar.xz |
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 'include/linux/mm_inline.h')
-rw-r--r-- | include/linux/mm_inline.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index cf55945c83fb..712e8c37a200 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h @@ -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 |