summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-10-05 20:23:03 +0200
committerChristian Brauner <brauner@kernel.org>2024-10-07 13:45:15 +0200
commitfcd4904e2f6908d5c255fa5818bcf8ad32a6f0e8 (patch)
treef99a5f7c6801408e0132c121564c77ed0722be24 /include/trace
parentnetfs: Fix the netfs_folio tracepoint to handle NULL mapping (diff)
downloadlinux-fcd4904e2f6908d5c255fa5818bcf8ad32a6f0e8.tar.xz
linux-fcd4904e2f6908d5c255fa5818bcf8ad32a6f0e8.zip
netfs: Remove call to folio_index()
Calling folio_index() is pointless overhead; directly dereferencing folio->index is fine. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Link: https://lore.kernel.org/r/20241005182307.3190401-2-willy@infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/netfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h
index 1d7c52821e55..72a208fd4496 100644
--- a/include/trace/events/netfs.h
+++ b/include/trace/events/netfs.h
@@ -451,7 +451,7 @@ TRACE_EVENT(netfs_folio,
struct address_space *__m = READ_ONCE(folio->mapping);
__entry->ino = __m ? __m->host->i_ino : 0;
__entry->why = why;
- __entry->index = folio_index(folio);
+ __entry->index = folio->index;
__entry->nr = folio_nr_pages(folio);
),