diff options
| author | Jens Axboe <axboe@suse.de> | 2002-10-27 17:41:21 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2002-10-27 17:41:21 -0800 |
| commit | 278bdd1c1b2cb35607a2c3e0eee53823e416cc5f (patch) | |
| tree | f448db343437c366c4823db27e7ebe4ae7536c2d /include | |
| parent | 6f04a530fa6fbcc8ad1329ce2c6b135a7b7742b6 (diff) | |
[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!
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/blk.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
