mm: Add folio reference count functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 31 Mar 2021 14:39:55 +0000 (10:39 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:29 +0000 (09:27 -0400)
commitc24016ac3a629655ea164b1129816660187943c0
tree2c53b6b5a90ba0bdceb85ae33845bab1987b4760
parent9e9edb2094db7eb4c6da21e02ac885955350ecf9
mm: Add folio reference count functions

These functions mirror their page reference counterparts.  Also add
the kernel-doc to the mm-api and correct the return type of
page_ref_add_unless() to bool.  No change to generated code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Documentation/core-api/mm-api.rst
include/linux/page_ref.h