From patchwork Mon Nov 5 11:41:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10667925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3F6415A6 for ; Mon, 5 Nov 2018 11:42:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A165C296F8 for ; Mon, 5 Nov 2018 11:42:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9545D29712; Mon, 5 Nov 2018 11:42:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 382A6296F8 for ; Mon, 5 Nov 2018 11:42:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbeKEVBm (ORCPT ); Mon, 5 Nov 2018 16:01:42 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:33610 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729447AbeKEVBd (ORCPT ); Mon, 5 Nov 2018 16:01:33 -0500 Received: by mail-it1-f196.google.com with SMTP id p11-v6so7500018itf.0 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=KDztkH15OuW3P4piub+D0vugyjVY+oW90ktFthvelRoi88eLHrMdx5d+XHBcdo9uUE FGSZCXRFVMRLMWl42OOl0AFlyT82jwI1f4aPK1umKjMm922shWxKR4FUa7GL8WRrVVc4 Mr3UH+4az4n4g2iKaWwvLHE1zX+jDpTBo+57YHT5/FqYJ2ykHv+CSp1DrCobjkTGnWWM OMZBBG8TCjt1hdKRobGGxiQEO41QlVCdXzSL9DlTa4OoikCtFSVzQv5zzABWm9u/j6Wv uytv+qNoqPOhZ87cIVHTd2ub1TDh+0/6SeF1npGWOomDINjaibUKm4B7zVeNVCpdFIO8 +qKw== X-Gm-Message-State: AGRZ1gLKvjOdft2/nBl/0GXjWF3SZY809PJMvVIZdAcfrZUGHR02QdDt l8FAPqKBHHuFywHUzwXcaR6stud07YEsdw== X-Google-Smtp-Source: AJdET5fARmOuOai4beCJqrcljzIAFavigSNdSetlSuDFLUjc9j8oND9BqbCzq3fe2E7aMePelUF2GQ== 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 */