mm: Add folio_put_refs()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 10 Dec 2021 20:09:21 +0000 (15:09 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Jan 2022 00:52:13 +0000 (19:52 -0500)
commit3fe7fa5843d204e235d92902190fecb972a3f9cc
tree92ae8b9afc4ee5f2f7f54d86bab9312ebcb28ef6
parent6840f9094f2bd788a316d8cb0a4e42538d3e47dd
mm: Add folio_put_refs()

This is like folio_put(), but puts N references at once instead of
just one.  It's like put_page_refs(), but does one atomic operation
instead of two, and is available to more than just gup.c.

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