Re: [f2fs-dev] [PATCH v3 1/2] f2fs: separate buffer and direct io in block allocation statistics

2021-09-16 Thread Chao Yu
On 2021/9/16 20:55, Fengnan Chang wrote: separate buffer and direct io in block allocation statistics. New output will like this: buffer direct segments IPU:0 0N/A SSR:0 0 0 LFS:0 0 0 Sign

Re: [f2fs-dev] [PATCH v3 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread Chao Yu
On 2021/9/16 20:55, Fengnan Chang wrote: For now, overwrite file with direct io use inplace policy, but not counted, fix it. And use stat_add_inplace_blocks(sbi, 1, ) instead of stat_inc_inplace_blocks(sb, ). Signed-off-by: Fengnan Chang Reviewed-by: Chao Yu Thanks, __

[f2fs-dev] [PATCH v3 1/2] f2fs: separate buffer and direct io in block allocation statistics

2021-09-16 Thread Fengnan Chang via Linux-f2fs-devel
separate buffer and direct io in block allocation statistics. New output will like this: buffer direct segments IPU:0 0N/A SSR:0 0 0 LFS:0 0 0 Signed-off-by: Fengnan Chang Reviewed-by: Chao

[f2fs-dev] [PATCH v3 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread Fengnan Chang via Linux-f2fs-devel
For now, overwrite file with direct io use inplace policy, but not counted, fix it. And use stat_add_inplace_blocks(sbi, 1, ) instead of stat_inc_inplace_blocks(sb, ). Signed-off-by: Fengnan Chang --- fs/f2fs/data.c| 7 ++- fs/f2fs/f2fs.h| 8 fs/f2fs/segment.c | 2 +- 3 file

Re: [f2fs-dev] [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread 常凤楠 via Linux-f2fs-devel
> -Original Message- > From: changfeng...@vivo.com On Behalf Of > Chao Yu > Sent: Thursday, September 16, 2021 8:10 PM > To: 常凤楠 ; jaeg...@kernel.org > Cc: linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite with > direct io >

Re: [f2fs-dev] [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread Chao Yu
On 2021/9/16 19:30, Fengnan Chang wrote: For now, overwrite file with direct io use inplace policy, but not counted, fix it. And use stat_add_inplace_blocks(sbi, 1, ) instead of stat_inc_inplace_blocks(sb, ). Signed-off-by: Fengnan Chang --- fs/f2fs/data.c| 7 ++- fs/f2fs/f2fs.h|

[f2fs-dev] [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread Fengnan Chang via Linux-f2fs-devel
For now, overwrite file with direct io use inplace policy, but not counted, fix it. And use stat_add_inplace_blocks(sbi, 1, ) instead of stat_inc_inplace_blocks(sb, ). Signed-off-by: Fengnan Chang --- fs/f2fs/data.c| 7 ++- fs/f2fs/f2fs.h| 8 fs/f2fs/segment.c | 2 +- 3 file

[f2fs-dev] [PATCH v2 1/2] f2fs: separate buffer and direct io in block allocation statistics

2021-09-16 Thread Fengnan Chang via Linux-f2fs-devel
separate buffer and direct io in block allocation statistics. New output will like this: buffer direct segments IPU:0 0N/A SSR:0 0 0 LFS:0 0 0 Signed-off-by: Fengnan Chang Reviewed-by: Chao

Re: [f2fs-dev] [PATCH] mkfs.f2fs: wipe other FS magics given -f

2021-09-16 Thread Chao Yu
On 2021/9/11 6:56, Jaegeuk Kim wrote: This patch fixes the below stale magic info. $ mkfs.btrfs -f test.img btrfs-progs v5.10.1 See http://btrfs.wiki.kernel.org for more information. Label: (null) UUID: 941d2db7-3ece-4090-8b22-c4ea548b5dae Node size: 16384 Se

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-16 Thread Chao Yu
On 2021/9/12 9:50, Fengnan Chang wrote: From: Fengnan Chang For now, overwrite file with direct io use inplace policy, but not counted, fix it. Signed-off-by: Fengnan Chang --- fs/f2fs/data.c | 7 ++- fs/f2fs/f2fs.h | 7 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff -

Re: [f2fs-dev] [PATCH 1/2] f2fs: separate buffer and direct io in block allocation statistics

2021-09-16 Thread Chao Yu
On 2021/9/12 9:50, Fengnan Chang wrote: From: Fengnan Chang separate buffer and direct io in block allocation statistics. New output will like this: buffer direct segments IPU:0 0N/A SSR:0 0 0 LFS:0

[f2fs-dev] [PATCH v2] f2fs: introduce excess_dirty_threshold()

2021-09-16 Thread Chao Yu
This patch enables f2fs_balance_fs_bg() to check all metadatas' dirty threshold rather than just checking node block's, so that checkpoint() from background can be triggered more frequently to avoid heaping up too much dirty metadatas. Threshold value by default: race with foreground opssi