From 278bdd1c1b2cb35607a2c3e0eee53823e416cc5f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sun, 27 Oct 2002 17:41:21 -0800 Subject: [PATCH] add end_request helpers that deal in bytes, not sectors This adds an end_that_request_chunk() helper, that puts the core functionality in __end_that_request_first(). This one deals in bytes. end_that_request_first() does the 512 multiply, and then end_that_request_chunk() can just use it directly. This enables ide-cd to do proper dma in sizes that are not sector aligned. Some of the most important CD functions (ripping audio dma, burning audio cds, burning raw cds) _require_ this or we will be in pio. That stinks. We simply cannot use pio for these, not on writers much that are fast! --- include/linux/blk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/blk.h b/include/linux/blk.h index b225609f2ee7..6f47ea7c853c 100644 --- a/include/linux/blk.h +++ b/include/linux/blk.h @@ -39,6 +39,7 @@ void initrd_init(void); */ extern int end_that_request_first(struct request *, int, int); +extern int end_that_request_chunk(struct request *, int, int); extern void end_that_request_last(struct request *); struct request *elv_next_request(request_queue_t *q); -- cgit v1.2.3