shmem: Convert part of shmem_undo_range() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 3 Dec 2021 13:50:01 +0000 (08:50 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:28:41 +0000 (00:28 -0500)
commit7b774aab7941e195d3130caa856da6904333988b
tree8e226d20f5a1f82946e54c4303f393d909bdf769
parent3506659e18a61ae525f3b9b4f5af23b4b149d4db
shmem: Convert part of shmem_undo_range() to use a folio

find_lock_entries() never returns tail pages.  We cannot use page_folio()
here as the pagevec may also contain swap entries, so simply cast for
now.  This is an intermediate step which will be fully removed by the
end of this series.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/shmem.c