• J
    f2fs: do not increase link count during recovery · 418f6c27
    Jaegeuk Kim 提交于
    If there are multiple fsynced dnodes having a dent flag, roll-forward routine
    sets FI_INC_LINK for their inode, and recovery_dentry increases its link count
    accordingly.
    That results in normal file having a link count as 2, so we can't unlink those
    files.
    
    This was added to handle several inode blocks having same inode number with
    different directory paths.
    But, current f2fs doesn't replay all of path changes and only recover its dentry
    for the last fsynced inode block.
    So, there is no reason to do this.
    Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
    418f6c27
recovery.c 13.7 KB