aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index e18d4192f6e8..90392a9d7a9c 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -39,7 +39,6 @@ void exit_io_context(void);
39struct io_context *get_io_context(gfp_t gfp_flags, int node); 39struct io_context *get_io_context(gfp_t gfp_flags, int node);
40struct io_context *alloc_io_context(gfp_t gfp_flags, int node); 40struct io_context *alloc_io_context(gfp_t gfp_flags, int node);
41void copy_io_context(struct io_context **pdst, struct io_context **psrc); 41void copy_io_context(struct io_context **pdst, struct io_context **psrc);
42void swap_io_context(struct io_context **ioc1, struct io_context **ioc2);
43 42
44struct request; 43struct request;
45typedef void (rq_end_io_fn)(struct request *, int); 44typedef void (rq_end_io_fn)(struct request *, int);
@@ -655,15 +654,18 @@ static inline void blk_run_address_space(struct address_space *mapping)
655 * blk_end_request() for parts of the original function. 654 * blk_end_request() for parts of the original function.
656 * This prevents code duplication in drivers. 655 * This prevents code duplication in drivers.
657 */ 656 */
658extern int blk_end_request(struct request *rq, int error, int nr_bytes); 657extern int blk_end_request(struct request *rq, int error,
659extern int __blk_end_request(struct request *rq, int error, int nr_bytes); 658 unsigned int nr_bytes);
660extern int blk_end_bidi_request(struct request *rq, int error, int nr_bytes, 659extern int __blk_end_request(struct request *rq, int error,
661 int bidi_bytes); 660 unsigned int nr_bytes);
661extern int blk_end_bidi_request(struct request *rq, int error,
662 unsigned int nr_bytes, unsigned int bidi_bytes);
662extern void end_request(struct request *, int); 663extern void end_request(struct request *, int);
663extern void end_queued_request(struct request *, int); 664extern void end_queued_request(struct request *, int);
664extern void end_dequeued_request(struct request *, int); 665extern void end_dequeued_request(struct request *, int);
665extern int blk_end_request_callback(struct request *rq, int error, int nr_bytes, 666extern int blk_end_request_callback(struct request *rq, int error,
666 int (drv_callback)(struct request *)); 667 unsigned int nr_bytes,
668 int (drv_callback)(struct request *));
667extern void blk_complete_request(struct request *); 669extern void blk_complete_request(struct request *);
668 670
669/* 671/*