diff options
| author | Jens Axboe <axboe@burns.home.kernel.dk> | 2002-02-11 14:38:30 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@burns.home.kernel.dk> | 2002-02-11 14:38:30 +0100 |
| commit | 14d39718ea2be95cc7197c8c94bf56142d0a306c (patch) | |
| tree | f72fc8c2b7ae0585956bd16deb2f4116fcb95604 /include | |
| parent | 66c92d0614790e8fbebdddac6df7818fde47ff68 (diff) | |
Remove nr_sectors from bio_end_io end I/O callback. It was a relic
from when completion was potentially called more than once to indicate
partial end I/O. These days bio->bi_end_io is _only_ called when I/O
has completed on the entire bio.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/bio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index a34f8d7dc4aa..12b38c8436a2 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -50,7 +50,7 @@ struct bio_vec { * weee, c forward decl... */ struct bio; -typedef int (bio_end_io_t) (struct bio *, int); +typedef void (bio_end_io_t) (struct bio *); typedef void (bio_destructor_t) (struct bio *); /* @@ -159,7 +159,7 @@ struct bio { #define BIO_SEG_BOUNDARY(q, b1, b2) \ BIOVEC_SEG_BOUNDARY((q), __BVEC_END((b1)), __BVEC_START((b2))) -#define bio_io_error(bio) bio_endio((bio), 0, bio_sectors((bio))) +#define bio_io_error(bio) bio_endio((bio), 0) /* * drivers should not use the __ version unless they _really_ want to @@ -192,7 +192,7 @@ struct bio { extern struct bio *bio_alloc(int, int); extern void bio_put(struct bio *); -extern int bio_endio(struct bio *, int, int); +extern void bio_endio(struct bio *, int); struct request_queue; extern inline int bio_phys_segments(struct request_queue *, struct bio *); extern inline int bio_hw_segments(struct request_queue *, struct bio *); |
