zswap: make zswap_load() take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 15 Jul 2023 04:23:43 +0000 (05:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:27 +0000 (13:37 -0700)
commitca54f6d89d60abf3e7dea68c95dfd442eeece212
treedb5db1ac60a6e83fcb68e820566b87237632ead0
parentfbcec6a3a09b309900f1ecef8954721d93555abd
zswap: make zswap_load() take a folio

Only convert a few easy parts of this function to use the folio passed in;
convert back to struct page for the majority of it.  Removes three hidden
calls to compound_head().

Link: https://lkml.kernel.org/r/20230715042343.434588-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/zswap.h
mm/page_io.c
mm/zswap.c