patch-1.3.90 linux/drivers/block/ll_rw_blk.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/arch/i386/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Tue Apr 16 15:43:19 1996
- Orig file:
v1.3.89/linux/drivers/block/ll_rw_blk.c
- Orig date:
Mon Apr 15 12:20:17 1996
diff -u --recursive --new-file v1.3.89/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
@@ -442,39 +442,6 @@
#endif
-/*
- * Swap partitions are now read via brw_page. ll_rw_page is an
- * asynchronous function now --- we must call wait_on_page afterwards
- * if synchronous IO is required.
- */
-void ll_rw_page(int rw, kdev_t dev, unsigned long page, char * buffer)
-{
- unsigned int major = MAJOR(dev);
- int block = page;
-
- if (major >= MAX_BLKDEV || !(blk_dev[major].request_fn)) {
- printk("Trying to read nonexistent block-device %s (%ld)\n",
- kdevname(dev), page);
- return;
- }
- switch (rw) {
- case READ:
- break;
- case WRITE:
- if (is_read_only(dev)) {
- printk("Can't page to read-only device %s\n",
- kdevname(dev));
- return;
- }
- break;
- default:
- panic("ll_rw_page: bad block dev cmd, must be R/W");
- }
- if (set_bit(PG_locked, &mem_map[MAP_NR(buffer)].flags))
- panic ("ll_rw_page: page already locked");
- brw_page(rw, (unsigned long) buffer, dev, &block, PAGE_SIZE, 0);
-}
-
/* This function can be used to request a number of buffers from a block
device. Currently the only restriction is that all buffers must belong to
the same device */
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