Re: [f2fs-dev] [PATCH v2 1/2] f2fs: use meta inode for GC of atomic file

2024-07-07 Thread Chao Yu
On 2024/7/5 16:24, Sunmin Jeong wrote: The page cache of the atomic file keeps new data pages which will be stored in the COW file. It can also keep old data pages when GCing the atomic file. In this case, new data can be overwritten by old data if a GC thread sets the old data page as dirty afte

Re: [f2fs-dev] [PATCH v2 2/2] f2fs: use meta inode for GC of COW file

2024-07-07 Thread Chao Yu
On 2024/7/5 16:25, Sunmin Jeong wrote: In case of the COW file, new updates and GC writes are already separated to page caches of the atomic file and COW file. As some cases that use the meta inode for GC, there are some race issues between a foreground thread and GC thread. To handle them, we n

Re: [f2fs-dev] [PATCH v2] f2fs:Add write priority option based on zone UFS

2024-07-07 Thread Chao Yu
On 2024/7/5 17:46, Liao Yuanhong wrote: Currently, we are using a mix of traditional UFS and zone UFS to support some functionalities that cannot be achieved on zone UFS alone. However, there are some issues with this approach. There exists a significant performance difference between traditional

Re: [f2fs-dev] [PATCH] f2fs: fix start segno of large section

2024-07-07 Thread Chao Yu
On 2024/7/6 17:16, Sheng Yong wrote: get_ckpt_valid_blocks() checks valid ckpt blocks in current section. It counts all vblocks from the first to the last segment in the large section. However, START_SEGNO() is used to get the first segno in an SIT block. This patch fixes that to get the correct

Re: [f2fs-dev] [PATCH] f2fs: fix start segno of large section

2024-07-07 Thread Sheng Yong via Linux-f2fs-devel
On 2024/7/8 14:09, Chao Yu wrote: On 2024/7/6 17:16, Sheng Yong wrote: get_ckpt_valid_blocks() checks valid ckpt blocks in current section. It counts all vblocks from the first to the last segment in the large section. However, START_SEGNO() is used to get the first segno in an SIT block. This