mm/gup: Add gup_put_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 10 Dec 2021 20:39:04 +0000 (15:39 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:52 +0000 (17:05 -0500)
commitaac2c5fa2f571fbb20c02d05942dc0871c259955
tree99ce52e84e9c38c0c491a4b2c8166e36e4cd0f7e
parent1e0c1776fe3578b9150fc0e1693e6dbdfa01d5e7
mm/gup: Add gup_put_folio()

Convert put_compound_head() to gup_put_folio() and hpage_pincount_sub()
to folio_pincount_sub().  This removes the last call to put_page_refs(),
so delete it.  Add a temporary put_compound_head() wrapper which will
be deleted by the end of this series.

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