mm: Turn page_maybe_dma_pinned() into folio_maybe_dma_pinned()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Dec 2021 23:40:41 +0000 (18:40 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:52 +0000 (17:05 -0500)
commit9c210ed70bd0774ebe1de2c501f3d18b7506641d
treecce7a7f765aa3f10093061bd138efc7a02363c43
parent6ad6a66ca0c08dfd3434a27237beb3104faf4b7b
mm: Turn page_maybe_dma_pinned() into folio_maybe_dma_pinned()

Replace three calls to compound_head() with one.  This removes the last
user of compound_pincount(), so remove that helper too.

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>
include/linux/mm.h