All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] erofs: fix to add missing tracepoint in erofs_readahead()
@ 2025-07-07  8:48 Chao Yu
  2025-07-07 10:17 ` Gao Xiang
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Yu @ 2025-07-07  8:48 UTC (permalink / raw)
  To: xiang
  Cc: linux-erofs, linux-kernel, Yue Hu, Jeffle Xu, Sandeep Dhavale,
	Hongbo Li, Chao Yu

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>
---
 fs/erofs/data.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/erofs/data.c b/fs/erofs/data.c
index 6a329c329f43..534ac359976e 100644
--- a/fs/erofs/data.c
+++ b/fs/erofs/data.c
@@ -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);
 }
 
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] erofs: fix to add missing tracepoint in erofs_readahead()
  2025-07-07  8:48 [PATCH] erofs: fix to add missing tracepoint in erofs_readahead() Chao Yu
@ 2025-07-07 10:17 ` Gao Xiang
  2025-07-07 11:22   ` Chao Yu
  0 siblings, 1 reply; 4+ messages in thread
From: Gao Xiang @ 2025-07-07 10:17 UTC (permalink / raw)
  To: Chao Yu, xiang
  Cc: linux-erofs, linux-kernel, Yue Hu, Jeffle Xu, Sandeep Dhavale,
	Hongbo Li



On 2025/7/7 16:48, Chao Yu wrote:
> 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")

Thanks Chao, btw, should we add tracepoint to erofs_read_folio() too?

Thanks,
Gao Xiang

> Signed-off-by: Chao Yu <chao@kernel.org>
> ---
>   fs/erofs/data.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/fs/erofs/data.c b/fs/erofs/data.c
> index 6a329c329f43..534ac359976e 100644
> --- a/fs/erofs/data.c
> +++ b/fs/erofs/data.c
> @@ -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);
>   }
>   



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] erofs: fix to add missing tracepoint in erofs_readahead()
  2025-07-07 10:17 ` Gao Xiang
@ 2025-07-07 11:22   ` Chao Yu
  2025-07-07 11:33     ` Gao Xiang
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Yu @ 2025-07-07 11:22 UTC (permalink / raw)
  To: Gao Xiang, xiang
  Cc: chao, linux-erofs, linux-kernel, Yue Hu, Jeffle Xu,
	Sandeep Dhavale, Hongbo Li

On 7/7/25 18:17, Gao Xiang wrote:
> 
> 
> On 2025/7/7 16:48, Chao Yu wrote:
>> 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")
> 
> Thanks Chao, btw, should we add tracepoint to erofs_read_folio() too?

Xiang, I guess it is useful for debug if we can add it, let me figure out
a patch for that?

Thanks,

> 
> Thanks,
> Gao Xiang
> 
>> Signed-off-by: Chao Yu <chao@kernel.org>
>> ---
>>   fs/erofs/data.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/fs/erofs/data.c b/fs/erofs/data.c
>> index 6a329c329f43..534ac359976e 100644
>> --- a/fs/erofs/data.c
>> +++ b/fs/erofs/data.c
>> @@ -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);
>>   }
>>   
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] erofs: fix to add missing tracepoint in erofs_readahead()
  2025-07-07 11:22   ` Chao Yu
@ 2025-07-07 11:33     ` Gao Xiang
  0 siblings, 0 replies; 4+ messages in thread
From: Gao Xiang @ 2025-07-07 11:33 UTC (permalink / raw)
  To: Chao Yu, xiang
  Cc: linux-erofs, linux-kernel, Yue Hu, Jeffle Xu, Sandeep Dhavale,
	Hongbo Li



On 2025/7/7 19:22, Chao Yu wrote:
> On 7/7/25 18:17, Gao Xiang wrote:
>>
>>
>> On 2025/7/7 16:48, Chao Yu wrote:
>>> 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")
>>
>> Thanks Chao, btw, should we add tracepoint to erofs_read_folio() too?
> 
> Xiang, I guess it is useful for debug if we can add it, let me figure out
> a patch for that?

Yes, it's up to you if you'd like to submit anothe patch for this.

Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>

Thanks,
Gao Xiang


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-07 11:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07  8:48 [PATCH] erofs: fix to add missing tracepoint in erofs_readahead() Chao Yu
2025-07-07 10:17 ` Gao Xiang
2025-07-07 11:22   ` Chao Yu
2025-07-07 11:33     ` Gao Xiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.