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
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,
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
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
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
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
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
: 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
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
: 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
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
11 matches
Mail list logo