Skip to contentSkip to conversation

erofs: fix to add missing tracepoint in erofs_read_folio()

PATCH In review Chao Yu 2 participants 2 messages Jul 8, 2025 EROFS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH 1/1 erofs: fix to add missing tracepoint in erofs_read_folio()

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")
---
 fs/erofs/data.c | 2 ++
 1 file changed, 2 insertions(+)
fs/erofs/data.c +2 -0
index 534ac359976e..221e0ff1ed0d 100644
@@ -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);
 }
 
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Chao Yu

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")

Thanks,
Gao Xiang