[f2fs-dev] [PATCH] f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry

2020-06-17 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao Under some condition, the __write_node_page will submit a page which is not f2fs_in_warm_node_list and will not call f2fs_add_fsync_node_entry. f2fs_gc continue to run to invoke f2fs_iget -> do_read_inode to read the same node page and set code node, which make f2fs_in_warm_node

[f2fs-dev] [PATCH v2] f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry

2020-06-17 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao Under some condition, the __write_node_page will submit a page which is not f2fs_in_warm_node_list and will not call f2fs_add_fsync_node_entry. f2fs_gc continue to run to invoke f2fs_iget -> do_read_inode to read the same node page and set code node, which make f2fs_in_warm_node

[f2fs-dev] [PATCH] f2fs-tools: set cold flag for non-dir node

2020-06-18 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao Signed-off-by: Wuyun Zhao --- fsck/dir.c | 1 + fsck/node.c | 1 + fsck/node.h | 11 +++ 3 files changed, 13 insertions(+) diff --git a/fsck/dir.c b/fsck/dir.c index 5f4f75e..dc03c98 100644 --- a/fsck/dir.c +++ b/fsck/dir.c @@ -522,6 +522,7 @@ static void init_inode

[f2fs-dev] [PATCH v2] f2fs-tools: introduce set_node_footer to initialize node footer

2020-06-18 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao the filesystem will use the cold flag, so deal with it to avoid potential issue of inconsistency Signed-off-by: Wuyun Zhao --- fsck/dir.c | 6 +- fsck/node.c| 9 + include/f2fs_fs.h | 20 mkfs/f2fs_format.c | 14 +

[f2fs-dev] [PATCH v3] f2fs-tools: introduce set_node_footer to initialize node footer

2020-06-19 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao the filesystem will use the cold flag, so deal with it to avoid potential issue of inconsistency Signed-off-by: Wuyun Zhao --- fsck/dir.c | 7 ++- fsck/node.c| 12 +--- include/f2fs_fs.h | 23 +++ mkfs/f2fs_format.c | 34 ++

[f2fs-dev] [PATCH v4] f2fs-tools: introduce set_node_footer to initialize node footer

2020-06-19 Thread zhaowuyun--- via Linux-f2fs-devel
From: Wuyun Zhao the filesystem will use the cold flag, so deal with it to avoid potential issue of inconsistency Signed-off-by: Wuyun Zhao Reviewed-by: Chao Yu --- fsck/dir.c | 7 ++- fsck/node.c| 12 +--- include/f2fs_fs.h | 23 +++ mkfs/f2f

[f2fs-dev] 答复: [PATCH v2 1/2] mkfs.f2fs: write fill chunk in sparse file for zeroed block

2019-05-14 Thread zhaowuyun via Linux-f2fs-devel
Hi Chao, using the same steps, make the userdata partition dirty and fastboot-flash userdata.img to see the mount is successful or not to test the patch, confirm that issue is fixed by this patch. Hope to see it accepted. Best Wishes, Zac ([email protected]) > > As zhaowuyun reported: >

[f2fs-dev] 答复: [PATCH v4 2/2] sload.f2fs: introduce f2fs_sparse_initialize_meta()

2019-05-14 Thread zhaowuyun via Linux-f2fs-devel
Hi Chao, using the same steps, make the userdata partition dirty and fastboot-flash userdata.img to see the mount is successful or not to test the patch, confirm that issue is fixed by this patch. Hope to see it accepted. Best Wishes, Zac ([email protected]) > > This patch fixes to init

Re: [f2fs-dev] [PATCH v2 1/2] mkfs.f2fs: write fill chunk in sparse file for zeroed block

2019-05-14 Thread zhaowuyun via Linux-f2fs-devel
Hi Chao, using the same steps, make the userdata partition dirty and fastboot-flash userdata.img to see the mount is successful or not to test the patch, confirm that issue is fixed by this patch. Hope to see it accepted. Tested-by: zhaowuyun Best Wishes, Zac ([email protected]) > > A

Re: [f2fs-dev] [PATCH v4 2/2] sload.f2fs: introduce f2fs_sparse_initialize_meta()

2019-05-14 Thread zhaowuyun via Linux-f2fs-devel
Hi Chao, using the same steps, make the userdata partition dirty and fastboot-flash userdata.img to see the mount is successful or not to test the patch, confirm that issue is fixed by this patch. Hope to see it accepted. Tested-by: zhaowuyun Best Wishes, Zac ([email protected]) > > T

[f2fs-dev] 答复: [PATCH v2 1/2] mkfs.f2fs: write fill chunk in sparse file for zeroed block

2019-05-14 Thread zhaowuyun via Linux-f2fs-devel
You are welcome. :) Best Wishes, Zac ([email protected]) > -邮件原件- > 发件人: Chao Yu [mailto:[email protected]] > 发送时间: 2019年5月15日 10:10 > 收件人: zhaowuyun; [email protected] > 抄送: [email protected]; [email protected] > 主题: Re: [PATCH v2 1/2] mkfs.f2fs: write fill chu