• Jaegeuk Kim's avatar
    f2fs: fix wrong condition check · b638f0c4
    Jaegeuk Kim authored
    While an orphan inode has zero link_count, f2fs_gc is able to select the inode
    for foreground gc.
    
    - f2fs_gc
     - do_garbage_collect
       - gc_data_segment
         : f2fs_iget is failed
         : get_valid_blocks() != 0, so that retry
    --> here we got the infinite loop.
    
    This patch resolved this issue.
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
    b638f0c4
inode.c 7.31 KB