]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-io.c
Drop 'size' argument from bio_endio and bi_end_io
[linux-2.6-omap-h63xx.git] / drivers / md / dm-io.c
index f3a772486437e1ee08608e28835adf85911aaaf8..b8e342fe75863e526a074584d3e0b64f92b775da 100644 (file)
@@ -124,15 +124,11 @@ static void dec_count(struct io *io, unsigned int region, int error)
        }
 }
 
-static int endio(struct bio *bio, unsigned int done, int error)
+static void endio(struct bio *bio, int error)
 {
        struct io *io;
        unsigned region;
 
-       /* keep going until we've finished */
-       if (bio->bi_size)
-               return 1;
-
        if (error && bio_data_dir(bio) == READ)
                zero_fill_bio(bio);
 
@@ -146,8 +142,6 @@ static int endio(struct bio *bio, unsigned int done, int error)
        bio_put(bio);
 
        dec_count(io, region, error);
-
-       return 0;
 }
 
 /*-----------------------------------------------------------------