]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commit903f8498f2398a510d9c70a4ba807b71ec1008f9
treed6eb7a132e7f8d0b31346f2abc9802f3e74ce548
parent198deb448cf784b3bd1a2a505d2458db5f97a576
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