patch-2.3.1 linux/drivers/block/rd.c
Next file: linux/drivers/block/rz1000.c
Previous file: linux/drivers/block/raid5.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue May 11 14:37:40 1999
- Orig file:
v2.3.0/linux/drivers/block/rd.c
- Orig date:
Thu Apr 29 11:53:41 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -482,6 +482,7 @@
memset(&inode, 0, sizeof(inode));
memset(&in_dentry, 0, sizeof(in_dentry));
inode.i_rdev = device;
+ init_waitqueue_head(&inode.i_wait);
infile.f_mode = 1; /* read only */
infile.f_dentry = &in_dentry;
in_dentry.d_inode = &inode;
@@ -490,6 +491,7 @@
memset(&out_inode, 0, sizeof(out_inode));
memset(&out_dentry, 0, sizeof(out_dentry));
out_inode.i_rdev = ram_device;
+ init_waitqueue_head(&out_inode.i_wait);
outfile.f_mode = 3; /* read/write */
outfile.f_dentry = &out_dentry;
out_dentry.d_inode = &out_inode;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)