[f2fs-dev] 答复: [PATCH v2 1/2] f2fs: fix to shrink read extent node in batches

2024-11-24 Thread Xiuhong Wang
Hi Chao, after tested in this weekend with these patch base on the orginal case, no issue reproduced, so Tested-by: Xiuhong Wang thanks! -邮件原件- 发件人: Chao Yu 发送时间: 2024年11月22日 14:50 收件人: jaeg...@kernel.org 抄送: linux-f2fs-devel@lists.sourceforge.net; linux-ker...@vger.kernel.org; Chao

Re: [f2fs-dev] [PATCH] f2fs: Fix to avoid long time to shrink extent cache

2024-11-18 Thread Xiuhong Wang
Chao Yu 于2024年11月19日周二 14:05写道: > > On 2024/11/12 19:06, Xiuhong Wang wrote: > > We encountered a system hang problem based on the following > > experiment: > > There are 17 processes, 8 of which do 4k data read, write and > > compare tests, and 8 do 64k read,

[f2fs-dev] [PATCH] f2fs: Fix to avoid long time to shrink extent cache

2024-11-12 Thread Xiuhong Wang
ch causes a loop and causes a system hang. To solve this problem, when calling f2fs_balance_fs, check whether the extent cache is sufficient. If not, release the zombie extent tree. Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- Test the problem with the temporary versions: patch did n

[f2fs-dev] [PATCH] f2fs: fix fiemap failure issue when page size is 16KB

2024-10-28 Thread Xiuhong Wang
t, that is, maxbytes defined above. And the max_inode_blocks function is not called by other functions except here, so cleanup it. Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- fs/f2fs/data.c | 22 +- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/fs/f

Re: [f2fs-dev] [PATCH] f2fs-tools: fix do_set_verity ioctl fail issue

2024-06-17 Thread Xiuhong Wang
Chao Yu 于2024年6月18日周二 11:04写道: > > On 2024/6/17 15:11, Xiuhong Wang wrote: > > When using the f2fs_io tool to set_verity, it will fail as follows: > > unisc:/data # ./f2fs_io set_verity file > > FS_IOC_ENABLE_VERITY: Inappropriate ioctl for device > > this is becau

[f2fs-dev] [PATCH] f2fs-tools: fix do_set_verity ioctl fail issue

2024-06-17 Thread Xiuhong Wang
el version. After patch: unisoc:/data # ./f2fs_io set_verity file Set fsverity bit to file unisoc:/data # ./f2fs_io getflags file get a flag on file ret=0, flags=verity Fixes: 95ae251fe828 ("f2fs: add fs-verity support") Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- include/a

[f2fs-dev] [PATCH 1/1] f2fs-tools: use atoll replace atoi to avoid data truncate

2024-06-12 Thread Xiuhong Wang
If input exceeds int range, data will be truncated, such as lseek: unisoc:/data # ./f2fs_io lseek set 3221225000 file returned offset=2147483647 The offset is truncated. After patch: unisoc:/data # ./f2fs_io lseek set 3221225000 file returned offset=3221225000 Signed-off-by: Xiuhong Wang Signed

[f2fs-dev] [PATCH V2 2/2] f2fs: compress: fix reserve_cblocks counting error when out of space

2024-03-05 Thread Xiuhong Wang
: c75488fb4d82 ("f2fs: introduce F2FS_IOC_RESERVE_COMPRESS_BLOCKS") Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- fs/f2fs/file.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 74c5e48fce22..dc9c6bac678d 10064

[f2fs-dev] [PATCH V2 1/2] f2fs: compress: relocate some judgments in f2fs_reserve_compress_blocks

2024-03-05 Thread Xiuhong Wang
s_inode_flag_set(inode, FI_COMPRESS_RELEASED). Fixes: c75488fb4d82 ("f2fs: introduce F2FS_IOC_RESERVE_COMPRESS_BLOCKS") Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- fs/f2fs/file.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/file.c b/f

[f2fs-dev] [PATCH 2/2] f2fs: compress: fix reserve_cblocks counting error when out of space

2024-03-05 Thread Xiuhong Wang
: c75488fb4d82 ("f2fs: introduce F2FS_IOC_RESERVE_COMPRESS_BLOCKS") Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- fs/f2fs/file.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 572d7bd4d161..97a7233c7ea7 10064

[f2fs-dev] [PATCH 1/2] f2fs: compress: relocate some judgments in f2fs_reserve_compress_blocks

2024-03-05 Thread Xiuhong Wang
s_inode_flag_set(inode, FI_COMPRESS_RELEASED). Fixes: c75488fb4d82 ("f2fs: introduce F2FS_IOC_RESERVE_COMPRESS_BLOCKS") Signed-off-by: Xiuhong Wang Signed-off-by: Zhiguo Niu --- fs/f2fs/file.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/file.c b/f