diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-01-31 06:36:19 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-02-01 03:26:33 -0500 |
commit | 22b132102f1540dd40f3e41df88796829b685f1a (patch) | |
tree | 20edc8316009b946ebd197b7aef7ccc041d02798 /include | |
parent | 640e248e44e2c550473550ca83668ceccad21dce (diff) |
block: new end request handling interface should take unsigned byte counts
No point in passing signed integers as the byte count, they can never
be negative.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e18d4192f6e8..cf170391c474 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -655,15 +655,18 @@ static inline void blk_run_address_space(struct address_space *mapping) | |||
655 | * blk_end_request() for parts of the original function. | 655 | * blk_end_request() for parts of the original function. |
656 | * This prevents code duplication in drivers. | 656 | * This prevents code duplication in drivers. |
657 | */ | 657 | */ |
658 | extern int blk_end_request(struct request *rq, int error, int nr_bytes); | 658 | extern int blk_end_request(struct request *rq, int error, |
659 | extern int __blk_end_request(struct request *rq, int error, int nr_bytes); | 659 | unsigned int nr_bytes); |
660 | extern int blk_end_bidi_request(struct request *rq, int error, int nr_bytes, | 660 | extern int __blk_end_request(struct request *rq, int error, |
661 | int bidi_bytes); | 661 | unsigned int nr_bytes); |
662 | extern int blk_end_bidi_request(struct request *rq, int error, | ||
663 | unsigned int nr_bytes, unsigned int bidi_bytes); | ||
662 | extern void end_request(struct request *, int); | 664 | extern void end_request(struct request *, int); |
663 | extern void end_queued_request(struct request *, int); | 665 | extern void end_queued_request(struct request *, int); |
664 | extern void end_dequeued_request(struct request *, int); | 666 | extern void end_dequeued_request(struct request *, int); |
665 | extern int blk_end_request_callback(struct request *rq, int error, int nr_bytes, | 667 | extern int blk_end_request_callback(struct request *rq, int error, |
666 | int (drv_callback)(struct request *)); | 668 | unsigned int nr_bytes, |
669 | int (drv_callback)(struct request *)); | ||
667 | extern void blk_complete_request(struct request *); | 670 | extern void blk_complete_request(struct request *); |
668 | 671 | ||
669 | /* | 672 | /* |