summaryrefslogtreecommitdiffstats
path: root/mm/swap_state.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-09-02 20:46:11 +0100
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:02:47 -0700
commitd4f9565ae598bd6b6ffbd8b4dfbf97a9e339da2d (patch)
treec7eec7e845e281e4ae7793e6510de5a06b65d35a /mm/swap_state.c
parent63ad4add3823051aeb1fcd1ba981f6efd07086bf (diff)
downloadlinux-d4f9565ae598bd6b6ffbd8b4dfbf97a9e339da2d.tar.bz2
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>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions