swap: remove some calls to compound_head() in swap_readpage()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 15 Jul 2023 04:23:42 +0000 (05:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:26 +0000 (13:37 -0700)
commitfbcec6a3a09b309900f1ecef8954721d93555abd
treecb801277bc8e795777fdcb602e3ee778d91ae961
parent074e3e262adb02a7a42e32e0aadfb6b6cf416854
swap: remove some calls to compound_head() in swap_readpage()

Replace six implicit calls to compound_head() with one call to
page_folio().

Link: https://lkml.kernel.org/r/20230715042343.434588-5-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>
mm/page_io.c