Skip to content
Commit a1dd3c13 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 5ebefc5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment