mm: use folio more widely in __split_huge_page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 28 Feb 2024 16:42:36 +0000 (16:42 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Mar 2024 01:01:27 +0000 (17:01 -0800)
commit435a75548109f19e5b5b14ae35b9acb063c084e9
tree2aca246cd8469e05fd60ead2c120ae4d2d93c6ba
parentd3246b6ee42a155ab57e936841028fff3d7d98b4
mm: use folio more widely in __split_huge_page

We already have a folio; use it instead of the head page where reasonable.
Saves a couple of calls to compound_head() and elimimnates a few
references to page->mapping.

Link: https://lkml.kernel.org/r/20240228164326.1355045-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c