aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 3b212f02db8d..aa2341df7932 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -737,6 +737,14 @@ extern void end_dequeued_request(struct request *, int);
737extern void blk_complete_request(struct request *); 737extern void blk_complete_request(struct request *);
738 738
739/* 739/*
740 * blk_end_request() takes bytes instead of sectors as a complete size.
741 * blk_rq_bytes() returns bytes left to complete in the entire request.
742 * blk_rq_cur_bytes() returns bytes left to complete in the current segment.
743 */
744extern unsigned int blk_rq_bytes(struct request *rq);
745extern unsigned int blk_rq_cur_bytes(struct request *rq);
746
747/*
740 * end_that_request_first/chunk() takes an uptodate argument. we account 748 * end_that_request_first/chunk() takes an uptodate argument. we account
741 * any value <= as an io error. 0 means -EIO for compatability reasons, 749 * any value <= as an io error. 0 means -EIO for compatability reasons,
742 * any other < 0 value is the direct error type. An uptodate value of 750 * any other < 0 value is the direct error type. An uptodate value of