Commit 6fa1df53 authored by Jaegeuk Kim's avatar 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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment