Skip to content

Commit fcd4904

Browse files
Matthew Wilcox (Oracle)brauner
authored andcommitted
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>
1 parent f801850 commit fcd4904

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/trace/events/netfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ TRACE_EVENT(netfs_folio,
451451
struct address_space *__m = READ_ONCE(folio->mapping);
452452
__entry->ino = __m ? __m->host->i_ino : 0;
453453
__entry->why = why;
454-
__entry->index = folio_index(folio);
454+
__entry->index = folio->index;
455455
__entry->nr = folio_nr_pages(folio);
456456
),
457457

0 commit comments

Comments
 (0)