projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c
[powerpc.git]
/
drivers
/
md
/
dm-io.c
diff --git
a/drivers/md/dm-io.c
b/drivers/md/dm-io.c
index
f3a7724
..
b8e342f
100644
(file)
--- a/
drivers/md/dm-io.c
+++ b/
drivers/md/dm-io.c
@@
-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;
{
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);
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);
bio_put(bio);
dec_count(io, region, error);
-
- return 0;
}
/*-----------------------------------------------------------------
}
/*-----------------------------------------------------------------