aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>2007-12-11 17:53:03 -0500
committerJens Axboe <jens.axboe@oracle.com>2008-01-28 04:37:13 -0500
commit5450d3e1d68f10be087f0855d8bad5458b50ecbe (patch)
tree400126ac131621229c49c549f27838fcf3a263e7 /include/linux/blkdev.h
parent3bcddeac1c4c7e6fb90531b80f236b1a05dfe514 (diff)
blk_end_request: cleanup 'uptodate' related code (take 4)
This patch converts 'uptodate' arguments of no longer exported interfaces, end_that_request_first/last, to 'error', and removes internal conversions for it in blk_end_request interfaces. Also, this patch removes no longer needed end_io_error(). Cc: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 0c39ac75bed4..0ea82d222046 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -745,14 +745,6 @@ extern void blk_complete_request(struct request *);
745extern unsigned int blk_rq_bytes(struct request *rq); 745extern unsigned int blk_rq_bytes(struct request *rq);
746extern unsigned int blk_rq_cur_bytes(struct request *rq); 746extern unsigned int blk_rq_cur_bytes(struct request *rq);
747 747
748/*
749 * end_that_request_first/chunk() takes an uptodate argument. we account
750 * any value <= as an io error. 0 means -EIO for compatability reasons,
751 * any other < 0 value is the direct error type. An uptodate value of
752 * 1 indicates successful io completion
753 */
754#define end_io_error(uptodate) (unlikely((uptodate) <= 0))
755
756static inline void blkdev_dequeue_request(struct request *req) 748static inline void blkdev_dequeue_request(struct request *req)
757{ 749{
758 elv_dequeue_request(req->q, req); 750 elv_dequeue_request(req->q, req);