f2fs: don't need to update inode checksum for recovery
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 Aug 2017 18:10:58 +0000 (11:10 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 5 Sep 2017 17:49:37 +0000 (10:49 -0700)
This patch fixes "f2fs: support inode checksum".
The recovered inode page will be rewritten with valid checksum.

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

index 2654c9166fbaeadd3df5d7f1c25764b1eed4ddbc..388a00262a5f5cfeaec584454abfe30dc200547d 100644 (file)
@@ -2287,8 +2287,6 @@ retry:
                        F2FS_FITS_IN_INODE(src, le16_to_cpu(src->i_extra_isize),
                                                                i_projid))
                        dst->i_projid = src->i_projid;
-
-               f2fs_inode_chksum_set(sbi, ipage);
        }
 
        new_ni = old_ni;