mm: move lru_to_page to mm_inline.h
[deliverable/linux.git] / include / linux / mm_inline.h
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
This page took 0.027567 seconds and 5 git commands to generate.