From 7aff5c69da4c925dcd7dc01a248a14be7d83d5c6 Mon Sep 17 00:00:00 2001 From: Sheng Yong Date: Mon, 23 Apr 2018 10:29:13 +0800 Subject: [PATCH] f2fs: do not check F2FS_INLINE_DOTS in recover 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 4ddc2262baf1..7305226a7476 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -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)