]> 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)
commit7bba8f34f09be1ae17f2920f90dab1eafff9c39b
tree19bb400f51389da870b4f3bcbfa05e7dd2d97f23
parent9cff4ffd788d0d399522f7f964699502f819656f
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