Skip to content

Commit d53238b

Browse files
chaseyuhsiangkao
authored andcommitted
erofs: fix to add missing tracepoint in erofs_readahead()
Commit 771c994 ("erofs: convert all uncompressed cases to iomap") converts to use iomap interface, it removed trace_erofs_readahead() tracepoint in the meantime, let's add it back. Fixes: 771c994 ("erofs: convert all uncompressed cases to iomap") Signed-off-by: Chao Yu <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
1 parent 86731a2 commit d53238b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/erofs/data.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ static int erofs_read_folio(struct file *file, struct folio *folio)
356356

357357
static void erofs_readahead(struct readahead_control *rac)
358358
{
359+
trace_erofs_readahead(rac->mapping->host, readahead_index(rac),
360+
readahead_count(rac), true);
361+
359362
return iomap_readahead(rac, &erofs_iomap_ops);
360363
}
361364

0 commit comments

Comments
 (0)