mm/gup: Convert gup_pte_range() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 10 Dec 2021 20:54:11 +0000 (15:54 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:52 +0000 (17:05 -0500)
commit95807dc30afe55eb457f2cdcaae1342c1d31f2c4
tree5efbe941642bd540679ea7eef6f1f5735d8b13da
parent84c9c6790c7c21714e48d78bc522ae34ecedc88e
mm/gup: Convert gup_pte_range() to use a folio

We still call try_grab_folio() once per PTE; a future patch could
optimise to just adjust the reference count for each page within
the folio.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/gup.c