patch-2.4.21 linux-2.4.21/fs/jbd/commit.c

Next file: linux-2.4.21/fs/jbd/journal.c
Previous file: linux-2.4.21/fs/intermezzo/vfs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/fs/jbd/commit.c linux-2.4.21/fs/jbd/commit.c
@@ -272,6 +272,11 @@
 	 */
 	while ((jh = commit_transaction->t_async_datalist)) {
 		struct buffer_head *bh = jh2bh(jh);
+		if (__buffer_state(bh, Freed)) {
+			BUFFER_TRACE(bh, "Cleaning freed buffer");
+			clear_bit(BH_Freed, &bh->b_state);
+			clear_bit(BH_Dirty, &bh->b_state);
+		}
 		if (buffer_locked(bh)) {
 			spin_unlock(&journal_datalist_lock);
 			unlock_journal(journal);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)