f2fs: do not check F2FS_INLINE_DOTS in recover
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/recovery.c | 2 -- 1 file changed, 2 deletions(-)
fs/f2fs/recovery.c +0 -2
@@ -204,8 +204,6 @@ static void recover_inline_flags(struct inode *inode, struct f2fs_inode *ri)set_inode_flag (inode,FI_DATA_EXIST ); elseclear_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)
Signature · 6 lines
2.14.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 4 lines · Sheng Yong
Only dir may have
F2FS_INLINE_DOTSflag, so there is no need to check the flag in recover flow.Signed-off-by Sheng Yong <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot