diff options
| author | Jens Axboe <axboe@suse.de> | 2002-10-27 17:53:44 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2002-10-27 17:53:44 -0800 |
| commit | 97565ed3ac5944e98c95d33d30626c5d3a3b18b3 (patch) | |
| tree | 2909da14c35dadb88fff52edbd615c4f0d00c76d /include/linux | |
| parent | 14ff27c5aadb76d34bfda3ebe13317b8c187dbf2 (diff) | |
[PATCH] make bio->bi_end_io() optional
Sometimes we don't even need a bio->bi_end_io, so make it optional. This
also encourages users to _use_ bio_endio()! I like that, since it means
they don't have to remember to decrement bi_size themselves.
Also clear bi_private in bio_init(), and switch to subsys_initcall().
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index d5decec17fe7..d272c152ebda 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -202,7 +202,7 @@ struct bio { extern struct bio *bio_alloc(int, int); extern void bio_put(struct bio *); -extern int bio_endio(struct bio *, unsigned int, int); +extern void bio_endio(struct bio *, unsigned int, 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 *); |
