From patchwork Mon Aug 9 10:47:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QW5kcsODwqkgIE5vZ3VlaXJh?= X-Patchwork-Id: 118359 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o79AmO4v002656 for ; Mon, 9 Aug 2010 10:48:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756107Ab0HIKru (ORCPT ); Mon, 9 Aug 2010 06:47:50 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:43309 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755678Ab0HIKrt (ORCPT ); Mon, 9 Aug 2010 06:47:49 -0400 Received: by iwn33 with SMTP id 33so3688712iwn.19 for ; Mon, 09 Aug 2010 03:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=krbeltfG/Rx30l731+sjhAjOwunuhaQ+Lz10Jy1fu8s=; b=doCLC+iT3NdMJPOhd1Ldx3CG1UIZ5WNei5ZSavHkD4SHedz1aIeOiyZzXSDGvDrRg7 ThvyUFc3RjmM+U1WVQJO1Lj03lsKtdokzuVPV/N5PW6+PHHNPbXZofDl70miHtQAenYc cTZjq5tC/ro9mbLffjJzI12YLAupctPhQdmRE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=r7iCLEGJDmnk9FeH2eVSt5pBwea4cGZNet1ecbhwuFf0V7zvPCjGLNiyI7FyDY0BZo 1gd168kHuHZB4epdzQMImuiWMYS5sdRFcrV40VEhihKj0MKYRzNf8Iwp5Mh8MH9/+MPh RDugY93R1neDgr1lVxWd3k2Pw3D5ihu8vxntM= MIME-Version: 1.0 Received: by 10.231.146.141 with SMTP id h13mr18973765ibv.1.1281350868924; Mon, 09 Aug 2010 03:47:48 -0700 (PDT) Received: by 10.231.199.208 with HTTP; Mon, 9 Aug 2010 03:47:48 -0700 (PDT) Date: Mon, 9 Aug 2010 11:47:48 +0100 Message-ID: Subject: [PATCH] Function btree_get_extent: Incorrect if-else if statement From: =?ISO-8859-1?Q?Andr=E9_Nogueira?= To: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 09 Aug 2010 10:48:24 +0000 (UTC) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 34f7c37..76eb161 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -164,7 +164,7 @@ static struct extent_map *btree_get_extent(struct inode *inode, failed_len); ret = -EIO; } - } else if (ret) { + } else { free_extent_map(em); em = NULL;