From patchwork Tue Nov 6 13:33:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10670421 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 C817E175A for ; Tue, 6 Nov 2018 13:33:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B89052A3CE for ; Tue, 6 Nov 2018 13:33:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACD932A3D4; Tue, 6 Nov 2018 13:33:53 +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 660C22A3CE for ; Tue, 6 Nov 2018 13:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388426AbeKFW7G (ORCPT ); Tue, 6 Nov 2018 17:59:06 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:55445 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388424AbeKFW7F (ORCPT ); Tue, 6 Nov 2018 17:59:05 -0500 Received: by mail-it1-f195.google.com with SMTP id b7-v6so17770107itd.5 for ; Tue, 06 Nov 2018 05:33:51 -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=im8NeFbgzA6SbKu0U4oV8gAJiI5O2suBuQF856AHMAw=; b=kj9Zxz7GZStsQLPH3kPSTiGkZXstVtaXHmqS9oo0vKZ79ZVFZ9zAGgQgdGWLGQedVO 9uri9OrQ5MxMyYcupktu8whM4qeV96s2qjeabX+sm/hGPpIC6UBo7B5weCk+yW8ySNds YbpCR0cBfgvior1wKBWRajXIm7sY+7BSB3blDSwrPGxYPSCprQCaZEhOU0JMzaSAXUEy apiQPPsyCTP6i8PojxYAdunsuRmN2S4WCk0oBGAeHGkbS8YFA3zg6TNnS/U1iQTvhtS0 lkTvV+LF1rUzmCVjr/jEAqoTHu5PvEhQ5zR6DDZueo7KSY/VNj9E/V6dOmo1VHYUsh/e uA7A== 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=im8NeFbgzA6SbKu0U4oV8gAJiI5O2suBuQF856AHMAw=; b=AousOn/09d45Cm0dzckZE/NPlJd6oULk/eb89WhkE+LKvmD3o0i/bDrMp4k3ewRMvU Up4A5JDe8ymFweKwW6fg2x9/CDrjRwoiFaUrcTV8EfCWZ8uh86xwbvZtc8o5NemRAk31 WYGnc1qDCCNna35kelxk+p1+Cc0fOAbCBAKmrAfTAUCaZPi+0SIjdrj7t2YJW7hL2otK wCdZvdrOYpVZ+jVosMrfzxL9HPGiNBlMRklAuTGDyyeWkoPN4xlsIXBgHP6fMtuxpmDA KI+jf8KG7fxXzFU3ZxZJPYBaJ8Yt/dk5OBK0u6Rzz5XQ3TZlwFe5JoJILLDnqZFuvCMF 6xjA== X-Gm-Message-State: AGRZ1gKEBkjoQqmD1wcdLtl4C2PjK9kaPTDRulWzGQy2Np/Ryk8hyfQ/ ebDFpkTa478GgO/pNXnHHUuCYAUhWtvfuA== X-Google-Smtp-Source: AJdET5eetHOQVtYnyLotcA/5StnVthdrsjDJWEwnklfzT8GX/EQltKtKjmOkiQppjmkh935c6U4z9g== X-Received: by 2002:a24:81d7:: with SMTP id q206-v6mr1764195itd.94.1541511230985; Tue, 06 Nov 2018 05:33:50 -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 u132-v6sm897282itb.21.2018.11.06.05.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 05:33:50 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , Sebastien Boisvert , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v3 7/7] lightnvm: pblk: remove dead code in pblk_recov_l2p Date: Tue, 6 Nov 2018 14:33:30 +0100 Message-Id: <20181106133330.26570-8-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181106133330.26570-1-hans.ml.holmberg@owltronix.com> References: <20181106133330.26570-1-hans.ml.holmberg@owltronix.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 Remove the call to pblk_line_replace_data as it returns directly because 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 */