提交 6fa1df53 编写于 作者: J Jaegeuk Kim

f2fs: recover fallocated space

If a fallocated file is fsynced, we should recover the i_size after sudden
power cut.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 b6fe5873
......@@ -682,6 +682,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset,
i_size_read(inode) < new_size) {
i_size_write(inode, new_size);
mark_inode_dirty(inode);
f2fs_write_inode(inode, NULL);
}
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册