erofs: fix to add missing tracepoint in erofs_read_folio()
authorChao Yu <chao@kernel.org>
Tue, 8 Jul 2025 11:19:42 +0000 (19:19 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 10 Jul 2025 09:08:26 +0000 (17:08 +0800)
Commit 771c994ea51f ("erofs: convert all uncompressed cases to iomap")
converts to use iomap interface, it removed trace_erofs_readpage()
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/20250708111942.3120926-1-chao@kernel.org
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c

index 534ac359976e246c5807c1a46c8f010767cc7ac1..221e0ff1ed0d52cc785716837b78c40bacfbc794 100644 (file)
@@ -351,6 +351,8 @@ int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
  */
 static int erofs_read_folio(struct file *file, struct folio *folio)
 {
+       trace_erofs_read_folio(folio, true);
+
        return iomap_read_folio(folio, &erofs_iomap_ops);
 }