OSDN Git Service

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>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commit0b90ddae13441c43a30d2e2689b8193a81891c92
treeeecaae0094d56efc990cfa710fafe3b77d687478
parent3d11b225aeb184bc3dc9b4b27b302815a7c531aa
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