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

2021-09-11 Thread Fengnan Chang
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 0 0 Signed-off-by: Fengnan Chan

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

2021-09-11 Thread Fengnan Chang
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 --git a/fs/f2fs/data.c b/fs/f2fs/data.c index

Re: [f2fs-dev] [PATCH v4] f2fs: introduce fragment allocation mode mount option

2021-09-11 Thread Chao Yu
On 2021/9/11 7:13, Jaegeuk Kim wrote: Wait. Why do we need to add so many options here? I was expecting to see performance difference when getting random segments or random blocks as an extreme case. I don't get the point why we need the middle of those cases. I guess we can simply the aging te

Re: [f2fs-dev] [PATCH v4] f2fs: introduce fragment allocation mode mount option

2021-09-11 Thread Chao Yu
On 2021/9/10 23:24, Daeho Jeong wrote: On Fri, Sep 10, 2021 at 7:34 AM Daeho Jeong wrote: On Thu, Sep 9, 2021 at 4:50 PM Chao Yu wrote: On 2021/9/8 2:12, Daeho Jeong wrote: On Fri, Sep 3, 2021 at 11:45 PM Chao Yu wrote: On 2021/9/4 12:40, Daeho Jeong wrote: As a per curseg field. May