From patchwork Fri Jul 24 10:21:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrik Lundquist X-Patchwork-Id: 6859171 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F0E63C05AC for ; Fri, 24 Jul 2015 10:21:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 093672053C for ; Fri, 24 Jul 2015 10:21:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F51F2052A for ; Fri, 24 Jul 2015 10:21:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbbGXKVJ (ORCPT ); Fri, 24 Jul 2015 06:21:09 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:33551 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbbGXKVI (ORCPT ); Fri, 24 Jul 2015 06:21:08 -0400 Received: by lbbyj8 with SMTP id yj8so12258425lbb.0 for ; Fri, 24 Jul 2015 03:21:06 -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=rfH7HyLERIHSQEgHXqbUxTAZi4uS5GqPmPbL0Bcov7Y=; b=QOkvjALf0/BOhm/2xc6Ea575T6mMiLOW3csVPZsT+Mxco0reLrzVpMOukyTvl9WZMc Uxj+MRpwioN04Lptd6PKYgASLHxboiC0uC6Rfo5Ob9e/C3lap69XDxR3Fdebp4T/w3Ek HE34d1cPpdwBuSSQ/hWiQeFLlk1pJextfGj3e4iPmAodrsfV3BY7MiW3yPIR3r2h/kap GCzNBR18AWJpzjy9cbaOzyfAhJDmujpip5Jx9ml/yuWUfVpWUGw6aC+vdZlVUAszGK2S is82tEALLZa3kY/MK74TB2tMCp667T/KZ3tVNvfUilYyG1/uC1REMZThtHIHF+9zmwGq OrTw== X-Received: by 10.112.25.69 with SMTP id a5mr12757880lbg.16.1437733266739; Fri, 24 Jul 2015 03:21:06 -0700 (PDT) Received: from nas.localdomain (c83-253-102-83.bredband.comhem.se. [83.253.102.83]) by smtp.gmail.com with ESMTPSA id x10sm1653465laa.32.2015.07.24.03.21.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 03:21:05 -0700 (PDT) From: Patrik Lundquist To: linux-btrfs@vger.kernel.org Cc: Patrik Lundquist Subject: [PATCH] btrfs-progs: defrag: remove unused variable Date: Fri, 24 Jul 2015 12:21:02 +0200 Message-Id: <1437733262-7117-1-git-send-email-patrik.lundquist@gmail.com> X-Mailer: git-send-email 2.1.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=-8.0 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 A leftover from when recursive defrag was added. Signed-off-by: Patrik Lundquist --- cmds-filesystem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 00a3f78..1b7b4c1 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -1131,7 +1131,6 @@ static int cmd_defrag(int argc, char **argv) int i; int recursive = 0; int ret = 0; - struct btrfs_ioctl_defrag_range_args range; int e = 0; int compress_type = BTRFS_COMPRESS_NONE; DIR *dirstream; @@ -1189,7 +1188,7 @@ static int cmd_defrag(int argc, char **argv) if (check_argc_min(argc - optind, 1)) usage(cmd_defrag_usage); - memset(&defrag_global_range, 0, sizeof(range)); + memset(&defrag_global_range, 0, sizeof(defrag_global_range)); defrag_global_range.start = start; defrag_global_range.len = len; defrag_global_range.extent_thresh = (u32)thresh;