diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-06-06 02:12:59 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-06-07 03:18:35 +0900 |
commit | 6fa1df533a93161c54c987bbffaadf03563aa78d (patch) | |
tree | ab6af0101adf147946762f42df07e1d72260d987 | |
parent | b6fe5873cb422417ae3fc914954bc5a10fd4e003 (diff) |
f2fs: recover fallocated space
If a fallocated file is fsynced, we should recover the i_size after sudden
power cut.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index d97e5c458f36..78110dab5681 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -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; |