shithub: lwext4

Download patch

ref: c93f3e49845d3b4f9f0cf5e5a2980fbc680b7413
parent: 825892fffbe28f07223e3f1dcadb887732591d49
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Mon Jan 18 19:57:59 EST 2016

ext4_journal: abort a buffer when its data is discarded.

--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -1800,7 +1800,7 @@
 		jbd_trans_finish_callback(journal,
 				trans,
 				jbd_buf->block_rec,
-				false);
+				true);
 
 		/* The buffer has not been modified, just release
 		 * that jbd_buf. */
@@ -1827,7 +1827,7 @@
 			jbd_trans_finish_callback(journal,
 					trans,
 					jbd_buf->block_rec,
-					false);
+					true);
 
 			/* The buffer has not been modified, just release
 			 * that jbd_buf. */