From: Hidehiro Kawai Date: Sun, 19 Oct 2008 03:27:58 +0000 (-0700) Subject: jbd: ordered data integrity fix X-Git-Tag: v2.6.27.8~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb18c699bb0ecf636113acee2ad25b201d2bb12;p=pandora-kernel.git jbd: ordered data integrity fix commit 960a22ae60c8a723bd17da3b929fe0bcea6d007e upstream. In ordered mode, if a file data buffer being dirtied exists in the committing transaction, we write the buffer to the disk, move it from the committing transaction to the running transaction, then dirty it. But we don't have to remove the buffer from the committing transaction when the buffer couldn't be written out, otherwise it would miss the error and the committing transaction would not abort. This patch adds an error check before removing the buffer from the committing transaction. Signed-off-by: Hidehiro Kawai Acked-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Cc: Willy Tarreau Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed