diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-12-06 23:04:57 -0500 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-09-27 09:27:29 -0400 |
| commit | 86d234cb0499c6466ccfc45f6501bc0cd4621c60 (patch) | |
| tree | d6fceb8463a3eab9b2aa803890a7cf3edc0f2c1f /include/linux/page_ref.h | |
| parent | b620f63358cd35c8e9084ee9fc460153f64714f6 (diff) | |
mm: Add folio_get()
If we know we have a folio, we can call folio_get() instead
of get_page() and save the overhead of calling compound_head().
No change to generated code.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zi Yan <ziy@nvidia.com>
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>
Diffstat (limited to 'include/linux/page_ref.h')
0 files changed, 0 insertions, 0 deletions
