aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-02-25 09:47:41 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-09-27 09:27:29 -0400
commit889a3747b3b7661b089ba4eae081a3b6bb351a23 (patch)
treef1021b5357fb6367b59ee681e72092d7e7f6230c /include/trace
parentmm: Add folio flag manipulation functions (diff)
downloadlinux-dev-889a3747b3b7661b089ba4eae081a3b6bb351a23.tar.xz
linux-dev-889a3747b3b7661b089ba4eae081a3b6bb351a23.zip
mm/lru: Add folio LRU functions
Handle arbitrary-order folios being added to the LRU. By definition, all pages being added to the LRU were already head or base pages, but call page_folio() on them anyway to get the type right and avoid the buried calls to compound_head(). Saves 783 bytes of kernel text; no functions grow. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Yu Zhao <yuzhao@google.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> Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/pagemap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/pagemap.h b/include/trace/events/pagemap.h
index 1d28431e85bd..92ad176210ff 100644
--- a/include/trace/events/pagemap.h
+++ b/include/trace/events/pagemap.h
@@ -41,7 +41,7 @@ TRACE_EVENT(mm_lru_insertion,
TP_fast_assign(
__entry->page = page;
__entry->pfn = page_to_pfn(page);
- __entry->lru = page_lru(page);
+ __entry->lru = folio_lru_list(page_folio(page));
__entry->flags = trace_pagemap_flags(page);
),