]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:16 +0000 (18:35 +0200)
commit 99f7619a77a0a2e3e2bcae676d0f301769167754 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/erofs/data.c

index 19ab9bb3a9a0e12178ba508d3517460578b74a32..51250ac184a5287f7a8d910f8f1d60c0fb1bde4a 100644 (file)
@@ -358,6 +358,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);
 }