From patchwork Sat Mar 22 17:16:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 3877821 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7C293BF540 for ; Sat, 22 Mar 2014 17:17:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7B52202B8 for ; Sat, 22 Mar 2014 17:17:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3371202B4 for ; Sat, 22 Mar 2014 17:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751750AbaCVRQr (ORCPT ); Sat, 22 Mar 2014 13:16:47 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:38590 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbaCVRQk (ORCPT ); Sat, 22 Mar 2014 13:16:40 -0400 Received: by mail-wg0-f43.google.com with SMTP id x13so2361574wgg.26 for ; Sat, 22 Mar 2014 10:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=BU9iwR5seF++4cV507/sjNRkRrsAhrwEukKPO6yJT0o=; b=QdKI88pUiWdR5zxA1QtIH9HOK9sSJNe1jd97WwixoceEZw9+3vTAFqQCBlNPv6A/dY u2FQ/YQiZoXrOdvc+ywpZfrYOvyE8X8Vivy9GL2Ln1mx1oxvsgLQKkfWIqKiqWFj+Y3z djMwPxlnV5C/0xaqEApIbTpUaJOq2FpwT8WbTk/otexNFFtOKNLg6vtikVPrYYaKkctb 4Bf/xDnVQ4cuhkgGnZk1PlZ8HXUlJ+1Sbt6x3xF367fL36d7e1fEeVFFRSQ7AEE8ZQBV +16TTO+KX+QBSRdj8ONpRLmBtdQ+dKyokdwz+WfIz42I0JZiuv5gogMtAsfNq8qGq95F EYUg== X-Received: by 10.180.221.68 with SMTP id qc4mr4479321wic.30.1395508599057; Sat, 22 Mar 2014 10:16:39 -0700 (PDT) Received: from debian-vm3.lan (bl13-154-103.dsl.telepac.pt. [85.246.154.103]) by mx.google.com with ESMTPSA id fs8sm18272590wib.8.2014.03.22.10.16.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Mar 2014 10:16:38 -0700 (PDT) From: Filipe David Borba Manana To: linux-btrfs@vger.kernel.org Cc: Filipe David Borba Manana Subject: [PATCH] Btrfs: send, remove dead code from __get_cur_name_and_parent Date: Sat, 22 Mar 2014 17:16:30 +0000 Message-Id: <1395508590-19063-1-git-send-email-fdmanana@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Signed-off-by: Filipe David Borba Manana --- fs/btrfs/send.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 6a1a343..2952889 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -2004,7 +2004,6 @@ static int __get_cur_name_and_parent(struct send_ctx *sctx, { int ret; int nce_ret; - struct btrfs_path *path = NULL; struct name_cache_entry *nce = NULL; /* @@ -2030,10 +2029,6 @@ static int __get_cur_name_and_parent(struct send_ctx *sctx, } } - path = alloc_path_for_send(); - if (!path) - return -ENOMEM; - /* * If the inode is not existent yet, add the orphan name and return 1. * This should only happen for the parent dir that we determine in @@ -2109,7 +2104,6 @@ out_cache: name_cache_clean_unused(sctx); out: - btrfs_free_path(path); return ret; }