patch-1.3.20 linux/fs/buffer.c

Next file: linux/fs/proc/mem.c
Previous file: linux/drivers/scsi/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.19/linux/fs/buffer.c linux/fs/buffer.c
@@ -228,7 +228,7 @@
 
 asmlinkage int sys_sync(void)
 {
-	sync_dev(0);
+	fsync_dev(0);
 	return 0;
 }
 
@@ -440,6 +440,7 @@
 	for (;;) {
 		if (!(bh=find_buffer(dev,block,size)))
 			return NULL;
+		bh->b_reuse=0;
 		bh->b_count++;
 		wait_on_buffer(bh);
 		if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
@@ -1075,6 +1076,7 @@
 		arr[block++] = bh;
 		bh->b_count = 1;
 		bh->b_dirt = 0;
+		bh->b_reuse = 0;
 		bh->b_flushtime = 0;
 		bh->b_uptodate = 0;
 		bh->b_req = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this