]> git.baikalelectronics.ru Git - kernel.git/commit
mm: convert do_swap_page()'s swapcache variable to a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 2 Sep 2022 19:46:11 +0000 (20:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:02:47 +0000 (14:02 -0700)
commitc1f9dc78851a23f91c11937d9a6afc62e6b3a119
treec7eec7e845e281e4ae7793e6510de5a06b65d35a
parent7d26e76fc35a287aecfaab65ec6fdf8e567442ef
mm: convert do_swap_page()'s swapcache variable to a folio

The 'swapcache' variable is used to track whether the page is from the
swapcache or not.  It can do this equally well by being the folio of the
page rather than the page itself, and this saves a number of calls to
compound_head().

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