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| 4 +++-
fs/f2fs/f2fs.h| 8
fs/f2fs/segment.c | 2 +-
3 files c
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
---
fs/f2fs/data.
https://bugzilla.kernel.org/show_bug.cgi?id=214299
--- Comment #2 from zhuang...@huawei.com ---
(In reply to Chao Yu from comment #1)
> I've sent a patch for this bug, could you please test with it?
>
> https://lore.kernel.org/linux-f2fs-devel/20210903023811.3458-1-chao@kernel.
> org/T/#u
Thanks
> -Original Message-
> From: changfeng...@vivo.com On Behalf Of
> Chao Yu
> Sent: Sunday, September 19, 2021 6:34 AM
> 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
>
>
Fix up a misuse that the filename pointer isn't always valid in
the ring buffer, and we should copy the content instead.
Fixes: 0c5e36db17f5 ("f2fs: trace f2fs_lookup")
Signed-off-by: Gao Xiang
---
include/trace/events/f2fs.h | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
di