aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-02-27 17:42:49 +0000
committerAndrew Morton <akpm@linux-foundation.org>2024-03-04 17:01:26 -0800
commitf39ec4dcb9e9b03b2a280829b8c15e3ae607398c (patch)
treeda5e5698109b4ea541b08f89a33cc7ed0f191057 /include/linux/mm.h
parentmm: remove free_unref_page_list() (diff)
downloadwireguard-linux-f39ec4dcb9e9b03b2a280829b8c15e3ae607398c.tar.xz
wireguard-linux-f39ec4dcb9e9b03b2a280829b8c15e3ae607398c.zip
mm: remove lru_to_page()
The last user was removed over a year ago; remove the definition. Link: https://lkml.kernel.org/r/20240227174254.710559-16-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: David Hildenbrand <david@redhat.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--include/linux/mm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 5c57fde9b69b..d45eadc440f5 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -227,7 +227,6 @@ int overcommit_policy_handler(struct ctl_table *, int, void *, size_t *,
/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */
#define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE)
-#define lru_to_page(head) (list_entry((head)->prev, struct page, lru))
static inline struct folio *lru_to_folio(struct list_head *head)
{
return list_entry((head)->prev, struct folio, lru);