]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72d21b905bb624b3ad45eb356194a1a31a12f81b
tree19bb400f51389da870b4f3bcbfa05e7dd2d97f23
parent5a47e3e3afa808c429c76f97027371de2d1a6572
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