• Jan Kara's avatar
    jbd: Delay discarding buffers in journal_unmap_buffer · 0b48676f
    Jan Kara authored
    Delay discarding buffers in journal_unmap_buffer until
    we know that "add to orphan" operation has definitely been
    committed, otherwise the log space of committing transation
    may be freed and reused before truncate get committed, updates
    may get lost if crash happens.
    
    This patch is a backport of JBD2 fix by dingdinghua <dingdinghua@nrchpc.ac.cn>.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    (cherry picked from commit 86963918)
    Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
    0b48676f
commit.c 28.5 KB