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) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent f801850 commit fcd4904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)