summaryrefslogtreecommitdiff
path: root/include/linux
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 10:37:13 +0100
commit5450d3e1d68f10be087f0855d8bad5458b50ecbe (patch)
tree400126ac131621229c49c549f27838fcf3a263e7 /include/linux
parent3bcddeac1c4c7e6fb90531b80f236b1a05dfe514 (diff)
downloadlinux-3.10-5450d3e1d68f10be087f0855d8bad5458b50ecbe.tar.gz
linux-3.10-5450d3e1d68f10be087f0855d8bad5458b50ecbe.tar.bz2
linux-3.10-5450d3e1d68f10be087f0855d8bad5458b50ecbe.zip
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')
-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 0c39ac75bed..0ea82d22204 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -745,14 +745,6 @@ extern void blk_complete_request(struct request *);
extern unsigned int blk_rq_bytes(struct request *rq);
extern unsigned int blk_rq_cur_bytes(struct request *rq);
-/*
- * end_that_request_first/chunk() takes an uptodate argument. we account
- * any value <= as an io error. 0 means -EIO for compatability reasons,
- * any other < 0 value is the direct error type. An uptodate value of
- * 1 indicates successful io completion
- */
-#define end_io_error(uptodate) (unlikely((uptodate) <= 0))
-
static inline void blkdev_dequeue_request(struct request *req)
{
elv_dequeue_request(req->q, req);