Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp452516imu; Mon, 5 Nov 2018 03:43:00 -0800 (PST) X-Google-Smtp-Source: AJdET5djm6pzJHpxCzAQgdIcweUYVQHocalxrPs07Vdw48aYJWCWvthDHjTvssc7wiO4EQUlRr7S X-Received: by 2002:a17:902:15a8:: with SMTP id m37-v6mr21751793pla.256.1541418180772; Mon, 05 Nov 2018 03:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541418180; cv=none; d=google.com; s=arc-20160816; b=gyVER/NufrT6+WNQQfKjooZqMLrT4Vpx1uiMp9VxcF1ZFAQik4+Ra8bgPe9Ft/CGZJ xUV3lqqBNn9PlLxFi3IGfRT5UmXqQOb+rHvuPAmtj5rJ9Zf/ogS/I4Q7tcgaAEVIueYF oWkxZyMAM42P70PP2Peg9G/3meJcgfXHPX/gETfUi86EXy6ePaIKJU9Z5KJEkvVak5FS Xp4CZ0py1QI37VYwWkEPLBeLrogj5zS7weODPObN6t32P4ajOGeCUpmll3Ynj6EBkT4o BziPkKIPzAEtTrIv/99BynTEb3d6GYattBnGDmXC14z/RZKs4kC59HVBrTyxa/69dfuh zHTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=I6VkKo/gA/7rVfoOYCcmwPUmucAY3X1LV11ImaJxs6o=; b=MrtNGvzrEMB/qQaZFVJCOhUT3+MTUj7xLA2SG9YN/dbF5jPgCy9AeIOyV5ZPSG45iu ydXw5+RM1thzRx2jCA/j56xAREl/2RCoT+scYYyfBTBMHCSMEE1kW5tTTACqrzvD362F drTqKkmKq2H3WirX/GmvXFCkY5v/LeJoB0SfaCYO2K5pptOJ6tilBYXCITSkRGPDpPBp nchJZ2dZdi06I+iyOfVwdv4dRDhaKG6dtnPPfJMrZeFtC4HsWSnvF8DDFyArFnZ/bG5H N4Wb+lzBm/RgZK/Ht3GU8QKaYKhBCHBe7rQGM84aQRvjVV85RgV1qVWbX+a6zRMfZa+V ieHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=11jtr3QY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si31750383pll.361.2018.11.05.03.42.45; Mon, 05 Nov 2018 03:43:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=11jtr3QY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729536AbeKEVBg (ORCPT + 99 others); Mon, 5 Nov 2018 16:01:36 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:51745 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728874AbeKEVBd (ORCPT ); Mon, 5 Nov 2018 16:01:33 -0500 Received: by mail-it1-f196.google.com with SMTP id h13so12199011itl.1 for ; Mon, 05 Nov 2018 03:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I6VkKo/gA/7rVfoOYCcmwPUmucAY3X1LV11ImaJxs6o=; b=11jtr3QYUGJC75M6G9/yF2SxEoJkQYw0fygbIYrunsLG5UIwZPc+gRerMD+gQXbdTD Am+qjFjZipPuQyffjG23RotRgKgETqXOIvp0J3tAufz1E6uMseos+IC+pwo3VDbXqZGf B+GYhd+faNgv3oPs/7PTh9nJLjdzAKpH/Q2HRx8uDHCOTu/Re+KNpbZnaq+rhYh7X8jK SDc9cduLR7oBuUg3925BlzaR5c35/nrm6v0IE1emmaZskHKMcG+juyEJ7SkmjfJGr4kI xTz2DRYLrUD5KqYPcnfPk2e139oEKkTUQZscKWPOLhqZNfs0jtH8/Q6z3TxyvZWHvP9f PXHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I6VkKo/gA/7rVfoOYCcmwPUmucAY3X1LV11ImaJxs6o=; b=MQqFwPjajkV1rLmH/BuFa70xlUMFsBv6wiLk/67sCisRNyAqeawXSQtzSG7/DLuyUw jRSLe/NzcK2pM5bOGOoLITMianOENt8G4OLPYuG6Jkm4sMfYhGrbY/T3KgcNIunXmrFQ c9q/cztDGJZfpxpAahagRqGjO624ElbX/Hj0j/QdHsOP1sS5jxBDtcaY86Hokjo2w5l+ DNw9o5caN5+puXL5xaEzgD1NRPLdAn6yIGYj+oDaU3rJRIDjnjcFAakSVDove/OXNG5r m46VPoxAwCBxFRPSX/x8b3armDBCfXJTrg3Ewv32ek3TeIO3uosXMApavdtABTEUrM7o 05fg== X-Gm-Message-State: AGRZ1gIMmCSwsbpMaAcdkIy+tBFUHQpykogdCIolE5A6mKV6SbOsKahF Ae2MiA+Ho/gXSC8PBjPXOeNzmg== X-Received: by 2002:a24:2b43:: with SMTP id h64-v6mr3414946ita.115.1541418134196; Mon, 05 Nov 2018 03:42:14 -0800 (PST) Received: from ch-lap-hans.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 186-v6sm14880824itf.11.2018.11.05.03.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 03:42:13 -0800 (PST) From: Hans Holmberg X-Google-Original-From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg , Hans Holmberg Subject: [PATCH 7/7] lightnvm: pblk: remove dead code in pblk_recov_l2p Date: Mon, 5 Nov 2018 12:41:13 +0100 Message-Id: <20181105114113.30932-8-hans.ml.holmberg@cnexlabs.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181105114113.30932-1-hans.ml.holmberg@cnexlabs.com> References: <20181105114113.30932-1-hans.ml.holmberg@cnexlabs.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg From: Hans Holmberg Remove the call to pblk_line_replace_data as it returns directly as we have not set l_mg->data_next yet. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-recovery.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index 0fbd30e0a587..416d9840544b 100644 --- a/drivers/lightnvm/pblk-recovery.c +++ b/drivers/lightnvm/pblk-recovery.c @@ -805,7 +805,6 @@ struct pblk_line *pblk_recov_l2p(struct pblk *pblk) WARN_ON_ONCE(!test_and_clear_bit(meta_line, &l_mg->meta_bitmap)); spin_unlock(&l_mg->free_lock); - pblk_line_replace_data(pblk); } else { spin_lock(&l_mg->free_lock); /* Allocate next line for preparation */ -- 2.17.1