• Jaegeuk Kim's avatar
    f2fs: fix lost xattrs of directories · bbf156f7
    Jaegeuk Kim authored
    This patch enhances the xattr consistency of dirs from suddern power-cuts.
    
    Possible scenario would be:
    1. dir->setxattr used by per-file encryption
    2. file->setxattr goes into inline_xattr
    3. file->fsync
    
    In that case, we should do checkpoint for #1.
    Otherwise we'd lose dir's key information for the file given #2.
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    bbf156f7
checkpoint.c 31.1 KB