Commit 2a94489d authored by Joe Thornber's avatar Joe Thornber Committed by Trond Myklebust

[PATCH] dm: Simplify error->map

Just return an error from the error targets map function, rather than
erroring the buffer_head.
parent 1006c21b
......@@ -163,8 +163,7 @@ static void io_err_dtr(struct dm_target *ti)
static int io_err_map(struct dm_target *ti, struct bio *bio)
{
bio_io_error(bio, 0);
return 0;
return -EIO;
}
static struct target_type error_target = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment