summaryrefslogtreecommitdiff
path: root/fs/bio.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@burns.home.kernel.dk>2002-02-11 14:38:30 +0100
committerJens Axboe <axboe@burns.home.kernel.dk>2002-02-11 14:38:30 +0100
commit14d39718ea2be95cc7197c8c94bf56142d0a306c (patch)
treef72fc8c2b7ae0585956bd16deb2f4116fcb95604 /fs/bio.c
parent66c92d0614790e8fbebdddac6df7818fde47ff68 (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 'fs/bio.c')
-rw-r--r--fs/bio.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/bio.c b/fs/bio.c
index e39197f24166..a83b018c227f 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -316,13 +316,12 @@ oom:
return NULL;
}
-static int bio_end_io_kio(struct bio *bio, int nr_sectors)
+static void bio_end_io_kio(struct bio *bio)
{
struct kiobuf *kio = (struct kiobuf *) bio->bi_private;
end_kio_request(kio, test_bit(BIO_UPTODATE, &bio->bi_flags));
bio_put(bio);
- return 0;
}
/**
@@ -441,7 +440,7 @@ out:
end_kio_request(kio, !err);
}
-int bio_endio(struct bio *bio, int uptodate, int nr_sectors)
+void bio_endio(struct bio *bio, int uptodate)
{
if (uptodate)
set_bit(BIO_UPTODATE, &bio->bi_flags);
@@ -449,9 +448,7 @@ int bio_endio(struct bio *bio, int uptodate, int nr_sectors)
clear_bit(BIO_UPTODATE, &bio->bi_flags);
if (bio->bi_end_io)
- return bio->bi_end_io(bio, nr_sectors);
-
- return 0;
+ bio->bi_end_io(bio);
}
static void __init biovec_init_pool(void)