From: Matthew Wilcox (Oracle) Date: Sat, 5 Oct 2024 18:23:03 +0000 (+0100) Subject: netfs: Remove call to folio_index() X-Git-Tag: v6.13-rc1~226^2~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd4904e2f6908d5c255fa5818bcf8ad32a6f0e8;p=thirdparty%2Fkernel%2Fstable.git netfs: Remove call to folio_index() Calling folio_index() is pointless overhead; directly dereferencing folio->index is fine. Signed-off-by: Matthew Wilcox (Oracle) Link: https://lore.kernel.org/r/20241005182307.3190401-2-willy@infradead.org Signed-off-by: Christian Brauner --- diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h index 1d7c52821e550..72a208fd44962 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); ),