]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 13 Aug 2021 18:19:12 +0000 (14:19 -0400)
commit032c92517e41ad1047c63bf27e4662bfaad06930
tree09120fea3c2985669d4dc10e33cb899779607976
parentf1972c0d463b8dc0ea82a7b1bb78d0c2901c63af
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