lkml.org 
[lkml]   [2003]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 8/10] dm: Simplify error->map
From
Just return an error from the error targets map function, rather than
erroring the buffer_head.
--- diff/drivers/md/dm-target.c 2003-01-02 11:26:44.000000000 +0000
+++ source/drivers/md/dm-target.c 2003-01-02 11:27:04.000000000 +0000
@@ -163,8 +163,7 @@

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 = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.364 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site