]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
jbd: Delay discarding buffers in journal_unmap_buffer
authorJan Kara <jack@suse.cz>
Tue, 16 Feb 2010 19:37:12 +0000 (20:37 +0100)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:26 +0000 (00:20 +0100)
commit86963918965eb8fe0c8ae009e7c1b4c630f533d5
tree333371098928c834b0bda0c2fe5bfd591a3806ef
parente5472147e1c0712d95d973acfdbd862957c77add
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>
fs/jbd/commit.c
fs/jbd/transaction.c