From 0aa8a47e7eb0ec3e23fcb27c7eac5e4d9dcf3ef9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Oct 2002 20:50:45 -0700 Subject: [PATCH] block cleanups o Change the blk_dump_rq_flags() a bit o Use rq->bio as an indication of ->bio is valid or not, instead of checking REQ_PC. Now we can have a bio on a REQ_BLOCK_PC as well. o Don't print eio error in end_that_request_first(), if REQ_QUIET is set. o debug check for valid bio in end_that_request_first() o Add blk_pc_request() check REQ_BLOCK_PC, similar to blk_fs_request() --- include/linux/blkdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ccb56d58de6a..42e81a4a0cab 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -235,6 +235,7 @@ struct request_queue #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) #define blk_queue_empty(q) elv_queue_empty(q) #define blk_fs_request(rq) ((rq)->flags & REQ_CMD) +#define blk_pc_request(rq) ((rq)->flags & REQ_BLOCK_PC) #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) #define rq_data_dir(rq) ((rq)->flags & 1) -- cgit v1.2.3