Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 8 Jan 2003 04:53:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 8 Jan 2003 04:52:07 -0500 Received: from cmailm3.svr.pol.co.uk ([195.92.193.19]:32518 "EHLO cmailm3.svr.pol.co.uk") by vger.kernel.org with ESMTP id ; Wed, 8 Jan 2003 04:51:08 -0500 Date: Wed, 8 Jan 2003 09:59:20 +0000 To: Joe Thornber Cc: Linus Torvalds , Linux Mailing List Subject: [PATCH 8/10] dm: Simplify error->map Message-ID: <20030108095920.GI2063@reti> References: <20030108095221.GA2063@reti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030108095221.GA2063@reti> User-Agent: Mutt/1.4i From: Joe Thornber Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 19 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/