diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-07-31 20:19:09 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-08-03 19:09:26 -0700 |
commit | 704956ecf5bcdc14d14650f39f2b545b34c96265 (patch) | |
tree | 7d1671f472ed05961a350510d09c4b2273e6a789 /fs/f2fs/segment.c | |
parent | 4f31d26b0c17f2aae6a6afeb823a87e20671ab4b (diff) | |
download | lwn-704956ecf5bcdc14d14650f39f2b545b34c96265.tar.gz lwn-704956ecf5bcdc14d14650f39f2b545b34c96265.zip |
f2fs: support inode checksum
This patch adds to support inode checksum in f2fs.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: fix verification flow]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 2a5672a20a62..8911f50ddef6 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -2214,9 +2214,12 @@ void allocate_data_block(struct f2fs_sb_info *sbi, struct page *page, mutex_unlock(&sit_i->sentry_lock); - if (page && IS_NODESEG(type)) + if (page && IS_NODESEG(type)) { fill_node_footer_blkaddr(page, NEXT_FREE_BLKADDR(sbi, curseg)); + f2fs_inode_chksum_set(sbi, page); + } + if (add_list) { struct f2fs_bio_info *io; |