Skip to content
  • Jaegeuk Kim's avatar
    f2fs: fix inconsistency between xattr node blocks and its inode · e518ff81
    Jaegeuk Kim authored
    
    
    Previously xattr node blocks are stored to the COLD_NODE log, which means that
    our roll-forward mechanism doesn't recover the xattr node blocks at all.
    Only the direct node blocks in the WARM_NODE log can be recovered.
    
    So, let's resolve the issue simply by conducting checkpoint during fsync when a
    file has a modified xattr node block.
    
    This approach is able to degrade the performance, but normally the checkpoint
    overhead is shown at the initial fsync call after the xattr entry changes.
    Once the checkpoint is done, no additional overhead would be occurred.
    
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
    e518ff81