• Jan Kara's avatar
    jbd: Delay discarding buffers in journal_unmap_buffer · 86963918
    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>
    86963918
transaction.c 64.8 KB