patch-2.4.18 linux/fs/jbd/recovery.c

Next file: linux/fs/jbd/revoke.c
Previous file: linux/fs/jbd/journal.c
Back to the patch index
Back to the overall index

diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/fs/jbd/recovery.c linux/fs/jbd/recovery.c
@@ -472,6 +472,7 @@
 						goto failed;
 					}
 
+					lock_buffer(nbh);
 					memcpy(nbh->b_data, obh->b_data,
 							journal->j_blocksize);
 					if (flags & JFS_FLAG_ESCAPE) {
@@ -483,6 +484,7 @@
 					mark_buffer_dirty(nbh);
 					BUFFER_TRACE(nbh, "marking uptodate");
 					mark_buffer_uptodate(nbh, 1);
+					unlock_buffer(nbh);
 					++info->nr_replays;
 					/* ll_rw_block(WRITE, 1, &nbh); */
 					brelse(obh);

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