]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/f2fs/data.c
f2fs: fix to recover i_size from roll-forward
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 27 Jun 2013 04:04:08 +0000 (13:04 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 1 Jul 2013 23:48:16 +0000 (08:48 +0900)
commita1dd3c13ce65b726fddfe72b9d2f1009db983ce6
tree19bb400f51389da870b4f3bcbfa05e7dd2d97f23
parent5ebefc5b409a194a09da7ad1962b4bfce10a6859
f2fs: fix to recover i_size from roll-forward

If user requests many data writes and fsync together, the last updated i_size
should be stored to the inode block consistently.

But, previous write_end just marks the inode as dirty and doesn't update its
metadata into its inode block.
After that, fsync just writes the inode block with newly updated data index
excluding inode metadata updates.

So, this patch introduces write_end in which updates inode block too when the
i_size is changed.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c