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

2021-09-21 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| 4 +++- fs/f2fs/f2fs.h| 8 fs/f2fs/segment.c | 2 +- 3 files c

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

2021-09-21 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 --- fs/f2fs/data.

[f2fs-dev] [Bug 214299] A deadlock problem caused by the quota_sem set in db6ec53b7e0

2021-09-21 Thread bugzilla-daemon
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

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

2021-09-21 Thread 常凤楠 via Linux-f2fs-devel
> -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 > >

[f2fs-dev] [PATCH] f2fs: fix up f2fs_lookup tracepoints

2021-09-21 Thread Gao Xiang
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