]> git.baikalelectronics.ru Git - kernel.git/commit
swapfile: convert unuse_pte_range() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 2 Sep 2022 19:46:32 +0000 (20:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:02:51 +0000 (14:02 -0700)
commitcfdbd3063e9b06fc482a66ac396c8c699bbcf1e8
treeb911c3fcb713a228fe08c8e830b3246b15ea79e9
parent0ca7ce261a9ae8155e82b625c2dfc92fa7dd563d
swapfile: convert unuse_pte_range() to use a folio

Delay fetching the precise page from the folio until we're in unuse_pte().
Saves many calls to compound_head().

Link: https://lkml.kernel.org/r/20220902194653.1739778-37-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c