f2fs: do not check F2FS_INLINE_DOTS in recover
authorSheng Yong <shengyong1@huawei.com>
Mon, 23 Apr 2018 02:29:13 +0000 (10:29 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:47 +0000 (11:31 -0700)
Only dir may have F2FS_INLINE_DOTS flag, so there is no need to check
the flag in recover flow.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/recovery.c

index 1b23d3febe4c78df46b18eab78cf6632c94c47a6..709dd4daaf299cb317539517e3b2e85582781030 100644 (file)
@@ -204,8 +204,6 @@ static void recover_inline_flags(struct inode *inode, struct f2fs_inode *ri)
                set_inode_flag(inode, FI_DATA_EXIST);
        else
                clear_inode_flag(inode, FI_DATA_EXIST);
-       if (!(ri->i_inline & F2FS_INLINE_DOTS))
-               clear_inode_flag(inode, FI_INLINE_DOTS);
 }
 
 static void recover_inode(struct inode *inode, struct page *page)