commit | 86963918965eb8fe0c8ae009e7c1b4c630f533d5 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Tue Feb 16 20:37:12 2010 +0100 |
committer | Jan Kara <jack@suse.cz> | Fri Mar 05 00:20:26 2010 +0100 |
tree | 333371098928c834b0bda0c2fe5bfd591a3806ef | |
parent | e5472147e1c0712d95d973acfdbd862957c77add [diff] |
jbd: Delay discarding buffers in journal_unmap_buffer 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: Jan Kara <jack@suse.cz>