patch-2.4.21 linux-2.4.21/fs/block_dev.c

Next file: linux-2.4.21/fs/buffer.c
Previous file: linux-2.4.21/fs/befs/super.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/fs/block_dev.c linux-2.4.21/fs/block_dev.c
@@ -631,7 +631,7 @@
 
 	down(&bdev->bd_sem);
 	lock_kernel();
-	if (kind == BDEV_FILE && bdev->bd_openers == 1)
+	if (kind == BDEV_FILE)
 		__block_fsync(bd_inode);
 	else if (kind == BDEV_FS)
 		fsync_no_super(rdev);

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