Re: [f2fs-dev] [PATCH v7] fsck.f2fs: Detect and fix looped node chain efficiently

2023-05-23 Thread Jaegeuk Kim
On 05/23, Chunhai Guo wrote: > find_fsync_inode() detect the looped node chain by comparing the loop > counter with free blocks. While it may take tens of seconds to quit when > the free blocks are large enough. We can use Floyd's cycle detection > algorithm to make the detection more efficient,

Re: [f2fs-dev] [PATCH v7] fsck.f2fs: Detect and fix looped node chain efficiently

2023-05-23 Thread Chao Yu
On 2023/5/23 18:40, Chunhai Guo wrote: find_fsync_inode() detect the looped node chain by comparing the loop counter with free blocks. While it may take tens of seconds to quit when the free blocks are large enough. We can use Floyd's cycle detection algorithm to make the detection more

[f2fs-dev] [PATCH v7] fsck.f2fs: Detect and fix looped node chain efficiently

2023-05-23 Thread Chunhai Guo via Linux-f2fs-devel
find_fsync_inode() detect the looped node chain by comparing the loop counter with free blocks. While it may take tens of seconds to quit when the free blocks are large enough. We can use Floyd's cycle detection algorithm to make the detection more efficient, and fix the issue by filling a NULL