patch-2.4.21 linux-2.4.21/include/linux/blkdev.h
Next file: linux-2.4.21/include/linux/cciss_ioctl.h
Previous file: linux-2.4.21/include/linux/blkcdb.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/linux/blkdev.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/linux/blkdev.h linux-2.4.21/include/linux/blkdev.h
@@ -140,6 +140,22 @@
wait_queue_head_t wait_for_requests[2];
};
+#define blk_queue_plugged(q) (q)->plugged
+#define blk_fs_request(rq) ((rq)->cmd == READ || (rq)->cmd == WRITE)
+#define blk_queue_empty(q) list_empty(&(q)->queue_head)
+
+extern inline int rq_data_dir(struct request *rq)
+{
+ if (rq->cmd == READ)
+ return READ;
+ else if (rq->cmd == WRITE)
+ return WRITE;
+ else {
+ BUG();
+ return -1; /* ahem */
+ }
+}
+
extern unsigned long blk_max_low_pfn, blk_max_pfn;
#define BLK_BOUNCE_HIGH (blk_max_low_pfn << PAGE_SHIFT)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)