• Jaegeuk Kim's avatar
    f2fs: avoid not to call remove_dirty_inode · 86928f98
    Jaegeuk Kim authored
    There is an errorneous case during the recovery like below.
    
    In recovery_dentry,
     1) dir = f2fs_iget();
     2) mark the dir with FI_DELAY_IPUT
     3) goto unmap_out
    
    After the end of recovery routine, there is no dirty dentries so the dir cannot
    be released by iput in remove_dirty_dir_inode.
    
    This patch fixes such the bug case by handling the iget and iput in the
    recovery_dentry procedure.
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    86928f98
recovery.c 10.9 KB