erofs: fix to add missing tracepoint in erofs_readahead()
authorChao Yu <chao@kernel.org>
Mon, 7 Jul 2025 08:48:32 +0000 (16:48 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 10 Jul 2025 09:08:25 +0000 (17:08 +0800)
Commit 771c994ea51f ("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: 771c994ea51f ("erofs: convert all uncompressed cases to iomap")
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250707084832.2725677-1-chao@kernel.org
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c

index 6a329c329f434046c80d9718f60e71a11ddd4f37..534ac359976e246c5807c1a46c8f010767cc7ac1 100644 (file)
@@ -356,6 +356,9 @@ static int erofs_read_folio(struct file *file, struct folio *folio)
 
 static void erofs_readahead(struct readahead_control *rac)
 {
+       trace_erofs_readahead(rac->mapping->host, readahead_index(rac),
+                                       readahead_count(rac), true);
+
        return iomap_readahead(rac, &erofs_iomap_ops);
 }