From patchwork Wed Feb 5 16:48:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 3587351 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA8539F392 for ; Wed, 5 Feb 2014 16:49:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D40020149 for ; Wed, 5 Feb 2014 16:49:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33C6E200F3 for ; Wed, 5 Feb 2014 16:49:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753056AbaBEQtG (ORCPT ); Wed, 5 Feb 2014 11:49:06 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:38526 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbaBEQtF (ORCPT ); Wed, 5 Feb 2014 11:49:05 -0500 Received: by mail-wi0-f172.google.com with SMTP id e4so776753wiv.11 for ; Wed, 05 Feb 2014 08:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=QPQ0VXUF+NWqPxWqB9Q2PlDFoJqvGXsOtcdjfN02DYY=; b=DYWnwY2C2nc32Hd1H9TUuPtcsXGBzFQNaT0Q2KbV0JJuJEF84xt+XVpfOfvs56Zhna RtjXBEq3g1iW8oAMS5DKnUAzhCTrxIf2pDp+piJXfXebX5BR1iBqjCVuhCo++py0ngS1 hZKdS6KuFi6XdBMJZOwEtV9d1EZmSl4uiXik46nCVywJlkO40p5dV5jNilq/zVzyqRAV e3GU/DdrQ7NE9sDyXxHctf+FXZVbqe0ooBJwpdgEqykedrhJeaSoz4iyOxDHPFWM6zIb pS4MJOATUVN0vIqOcNstzMhIZcgf6HhEzWPaibcRa+2he5jqoXLo7ir2XjDPPFsZWULN 2DBg== X-Received: by 10.194.219.132 with SMTP id po4mr2129819wjc.7.1391618943420; Wed, 05 Feb 2014 08:49:03 -0800 (PST) Received: from storm-desktop.lan (bl5-4-53.dsl.telepac.pt. [82.154.4.53]) by mx.google.com with ESMTPSA id u6sm47285680wif.6.2014.02.05.08.49.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 08:49:02 -0800 (PST) From: Filipe David Borba Manana To: linux-btrfs@vger.kernel.org Cc: Filipe David Borba Manana Subject: [PATCH 1/2] Btrfs: use right extent item position in send when finding extent clones Date: Wed, 5 Feb 2014 16:48:55 +0000 Message-Id: <1391618936-8716-1-git-send-email-fdmanana@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This was a leftover from the commit: 74dd17fbe3d65829e75d84f00a9525b2ace93998 (Btrfs: fix btrfs send for inline items and compression) Signed-off-by: Filipe David Borba Manana --- fs/btrfs/send.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index f71fcbc..7a1b547 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -1257,8 +1257,6 @@ static int find_extent_clone(struct send_ctx *sctx, extent_item_pos = logical - found_key.objectid; else extent_item_pos = 0; - - extent_item_pos = logical - found_key.objectid; ret = iterate_extent_inodes(sctx->send_root->fs_info, found_key.objectid, extent_item_pos, 1, __iterate_backrefs, backref_ctx);