]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Add folio_mapped()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 12 Apr 2021 20:45:17 +0000 (16:45 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:48:59 +0000 (14:48 -0400)
commit70d77ae6ed3aa4661bcd7996d0b64c7b7b475ed2
tree3977df7e7d5f1aed263df1d6287db4c5e4660eb1
parent805e2c1c383055bdb77764fbd74af718ddd51a49
mm: Add folio_mapped()

This function is the equivalent of page_mapped().  It is slightly
shorter as we do not need to handle the PageTail() case.  Reimplement
page_mapped() as a wrapper around folio_mapped().  folio_mapped()
is 13 bytes smaller than page_mapped(), but the page_mapped() wrapper
is 30 bytes, for a net increase of 17 bytes of text.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
include/linux/mm.h
include/linux/mm_types.h
mm/folio-compat.c
mm/util.c