]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Add folio_add_new_anon_rmap()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 30 Dec 2022 19:34:55 +0000 (14:34 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:55 +0000 (23:00 -0500)
commit02baa18855429566ffef64651f1e828aa61dbf68
treecf0fea69397dc7839f9be4e83f42cf5ff17d3910
parent84af4ad599dd71b486da9bfa20ee463bf4c7d16b
mm: Add folio_add_new_anon_rmap()

In contrast to other rmap functions, page_add_new_anon_rmap() is always
called with a freshly allocated page.  That means it can't be called with
a tail page.  Turn page_add_new_anon_rmap() into folio_add_new_anon_rmap()
and add a page_add_new_anon_rmap() wrapper.  Callers can be converted
individually.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rmap.h
mm/folio-compat.c
mm/rmap.c