mm/sl{a,u}b: fix wrong usages of folio_page() for getting head pages
authorSeongJae Park <sj@kernel.org>
Tue, 10 Jan 2023 00:51:24 +0000 (00:51 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 13 Jan 2023 11:12:52 +0000 (12:12 +0100)
commitc034c6a45c977fdf33de5974d7def75bda9dcadc
treea13aac46e5704045bd6f49fab85b7668f203f53f
parent35e3c36d438e05fcd4f846c76cf22cbda9b63abb
mm/sl{a,u}b: fix wrong usages of folio_page() for getting head pages

The standard idiom for getting head page of a given folio is
'&folio->page', but some are wrongly using 'folio_page(folio, 0)' for
the purpose.  Fix those to use the idiom.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: SeongJae Park <sj@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slab.c
mm/slub.c