Re: [f2fs-dev] [PATCH 1/2] f2fs: add a proc entry show inject stats

2025-03-19 Thread Chao Yu via Linux-f2fs-devel
On 3/20/25 09:16, Zhiguo Niu wrote: > Chao Yu via Linux-f2fs-devel > 于2025年3月19日周三 23:38写道: >> >> This patch adds a proc entry named inject_stats to show total injected >> count for each fault type. >> >> cat /proc/fs/f2fs//inject_stats >> fault_type injected_count >> kmalloc

Re: [f2fs-dev] [PATCH 1/2] f2fs: add a proc entry show inject stats

2025-03-19 Thread Zhiguo Niu
Chao Yu via Linux-f2fs-devel 于2025年3月19日周三 23:38写道: > > This patch adds a proc entry named inject_stats to show total injected > count for each fault type. > > cat /proc/fs/f2fs//inject_stats > fault_type injected_count > kmalloc 0 > kvmalloc0 > page al

Re: [f2fs-dev] [PATCH][next] f2fs: remove redundant assignment to variable err

2025-03-19 Thread Dan Carpenter
On Wed, Mar 19, 2025 at 11:30:10AM +, Colin Ian King wrote: > The variable err is being assigned a value zero and then the following > goto page_hit reassigns err a new value. The zero assignment is redundant > and can be removed. > > Signed-off-by: Colin Ian King > --- > fs/f2fs/node.c | 1

[f2fs-dev] [PATCH 2/2] f2fs: fix to update injection attrs according to fault_option

2025-03-19 Thread Chao Yu via Linux-f2fs-devel
When we update inject type via sysfs, it shows wrong rate value as below, there is a same problem when we update inject rate, fix it. Before: F2FS-fs (vdd): build fault injection attr: rate: 0, type: 0x F2FS-fs (vdd): build fault injection attr: rate: 1, type: 0x0 After: F2FS-fs (vdd): build

[f2fs-dev] [PATCH 1/2] f2fs: add a proc entry show inject stats

2025-03-19 Thread Chao Yu via Linux-f2fs-devel
This patch adds a proc entry named inject_stats to show total injected count for each fault type. cat /proc/fs/f2fs//inject_stats fault_type injected_count kmalloc 0 kvmalloc0 page alloc 0 page get0 alloc bio(obsolete) 0

Re: [f2fs-dev] [PATCH][next] f2fs: remove redundant assignment to variable err

2025-03-19 Thread Chao Yu via Linux-f2fs-devel
On 3/19/25 19:30, Colin Ian King wrote: > The variable err is being assigned a value zero and then the following > goto page_hit reassigns err a new value. The zero assignment is redundant > and can be removed. > > Signed-off-by: Colin Ian King Reviewed-by: Chao Yu Thanks, __

[f2fs-dev] Mattresses - collaboration

2025-03-19 Thread Brendon Roy via Linux-f2fs-devel
Hi, Dropshipping our mattresses is a solution that is now gaining a lot of popularity – simple sales without the need to invest in warehousing, logistics, or shipping. You sell, and we take care of the rest. What's more, we don't leave you on your own – we help with sales and marketing so that

[f2fs-dev] [PATCH][next] f2fs: remove redundant assignment to variable err

2025-03-19 Thread Colin Ian King
The variable err is being assigned a value zero and then the following goto page_hit reassigns err a new value. The zero assignment is redundant and can be removed. Signed-off-by: Colin Ian King --- fs/f2fs/node.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c