patch-2.3.32 linux/drivers/block/rd.c
Next file: linux/drivers/block/swim3.c
Previous file: linux/drivers/block/ps2esdi.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Dec 12 23:02:23 1999
- Orig file:
v2.3.31/linux/drivers/block/rd.c
- Orig date:
Tue Nov 23 22:42:20 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -181,7 +181,7 @@
* allocated size, we must get rid of it...
*
*/
-static void rd_request(void)
+static void rd_request(request_queue_t * q)
{
unsigned int minor;
unsigned long offset, len;
@@ -350,7 +350,7 @@
invalidate_buffers(MKDEV(MAJOR_NR, i));
unregister_blkdev( MAJOR_NR, "ramdisk" );
- blk_dev[MAJOR_NR].request_fn = 0;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
}
/* This is the registration and initialization section of the RAM disk driver */
@@ -371,7 +371,7 @@
return -EIO;
}
- blk_dev[MAJOR_NR].request_fn = &rd_request;
+ blk_init_queue(BLK_DEFAULT_QUEUE(MAJOR_NR), &rd_request);
for (i = 0; i < NUM_RAMDISKS; i++) {
/* rd_size is given in kB */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)