• Jaegeuk Kim's avatar
    f2fs: fix to recover i_size from roll-forward · a1dd3c13
    Jaegeuk Kim authored
    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>
    a1dd3c13
data.c 18.6 KB