]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: delay discarding buffers in journal_unmap_buffer
authordingdinghua <dingdinghua@nrchpc.ac.cn>
Mon, 15 Feb 2010 21:35:42 +0000 (16:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Feb 2010 21:35:42 +0000 (16:35 -0500)
commit6219993ed2031649e9355b93c2386c7dcc456152
treec461ae44ed5f9fc45573c14c74548f3f50109547
parent05becb98ccc037d88a4697dd221392113ba2b1b7
jbd2: 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.

Signed-off-by: dingdinghua <dingdinghua@nrchpc.ac.cn>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c
fs/jbd2/transaction.c