Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp702144imu; Mon, 5 Nov 2018 07:32:31 -0800 (PST) X-Google-Smtp-Source: AJdET5eh4/mNdu8A8WqiGh4D10RCiYMQduSWhYZbBPWGADTyB1FdYPlLvCGb8wTAP8bUNi8S9k0n X-Received: by 2002:a63:111c:: with SMTP id g28mr20339386pgl.85.1541431951302; Mon, 05 Nov 2018 07:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541431951; cv=none; d=google.com; s=arc-20160816; b=Vly6+gYTDLTsDgzIL4121lYpLKSMvElO3ml/y6LovZVWh+A2PE6+GruBwXE1q7zIqj MY38w5W9q5i/g0ngevF+At+CXlW9TmOZpAf9LknDB0EN6n+mwsKLadXQisxtiyQ67X/h dZOJM8UGYqJokSWCvSXemF06U6u4wI5doiswcc9oQtrSqc1i38PbwbHkgMYVgHxXBztH c246o9lyLrn4q9KDiDbFUdBgNHLaT9FGDnrCmnppnwt4Bj/9uJnfDYiGUE+YxnO0kGYo ib+q3ZOpwIHWtu+0ZRwa45e3uJp+ux4RVwvZriXD5CIwfSOLX8gJKdJWuiHwbLbqEkdr UG8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=4O7vSL3Vm0MS2iyKfCSkeZfMip/l+s5ja7BJpl1qbpY=; b=MjWGOsDUF+aIASmJYkIQRm1Qibtf+7zkZiPxlC58vZe5cLbvH/5KOtiA4MLvN4NBM2 mVLFRaiGcqwycwhmEZgWV+WmXn/Swfi8i8VMbIfA7vyM2fCSQn2LLKaAMKJGT1acqJgc jXjNc7ATF3O5VMWCFRE8Cn63SyjWn6dKGITe+O9On8gIC/H1PKkAiBI7weU99JmC7rZc LhvZ0NxPB74oivq256Q1Ih9UjPLnjJbrj8WnOrdE7CrKkpmzhJy2ep9wwJ6nsYJzbf7W /dOx9bexKcWxdpak19jnZzmLKFOZt/7o1N5nPkvfHNXC02SH3MMUjZgrrb8iaTXBX4Dq gCkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 n188-v6si36403572pga.434.2018.11.05.07.32.15; Mon, 05 Nov 2018 07:32:31 -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; 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 S1729994AbeKFAvo (ORCPT + 99 others); Mon, 5 Nov 2018 19:51:44 -0500 Received: from mail.gydle.com ([64.18.173.180]:51398 "EHLO mail.gydle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727623AbeKFAvn (ORCPT ); Mon, 5 Nov 2018 19:51:43 -0500 X-Received: from [192.168.1.136] (unknown [69.70.179.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboisvert@gydle.com) by mail.gydle.com (Postfix) with ESMTPSA id EDA74440D3; Mon, 5 Nov 2018 10:31:27 -0500 (EST) Subject: Re: [PATCH v2 7/7] lightnvm: pblk: remove dead code in pblk_recov_l2p To: Hans Holmberg , Matias Bjorling Cc: Javier Gonzales , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg References: <20181105122610.1555-1-hans.ml.holmberg@owltronix.com> <20181105122610.1555-8-hans.ml.holmberg@owltronix.com> From: Sebastien Boisvert Openpgp: preference=signencrypt Autocrypt: addr=s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wkiZeIcajZqK8hws6h6bLLZBn7EcZAEj8VLSdfUjJqCt VOZyQGdo8sNYjJPeV69vNbBUbX7BcxhxRZEYXw1rCz/xaCbNyRqRsxT03haPLg+WVQARAQAB wsFlBBgBCAAPBQJYtEIDAhsMBQkJZgGAAAoJEGsrrSebZ4/x13oP/2gWO3D6zo2Ok13khz4u +blJz8rzV1PQ5TVJmrsU05pVDlKgoZdtfEUtHlfAkzvNUpoKhNRWVN5/3QLwF4z0jfXyFYuS 8CVMRA75h59jSABdCWvZrQLHKJV03t++IFBi3y2DUilHXrCHUxg0iJeUhbMorgxc43d6DJw2 o53r+hBTfexVvcCodOREHR253eaw55lnL1J4sn0KVfprd0tLUTtR6QtF6oMXTcRedrE5bbQB oH/mmorTeQcEO6uDqc9SgqzEaLpNUxsXOBEMp0HYsQBoTdGzsh6aZGrVHX47A3ZLFv9WbRB+ iluFb5KY2n673MOZgSuCFurTuNm+Ik4qfHz3KCVkEghN/swYZW/ONxqZC+2kIPO30WJOnvSL OptwSrxigmRMwJMCYI59NwaF9lyk/F8iL798mNXuhb9mWoiw2Qfjm5xAI+8u3ECDlF6RImKJ QW26frU/JgIUOPrTP+XkxBzCK+vKVekqjhASMH0vLMUBjY02EvqjYfR1egevXc63hMJDR513 uqyECDvmUMJulfMUR2BeaX/+6/alsvQLlvDF8sZ1wrP4PFdqTELwMPHvKsZgX4KhMnNUhPSD XxdTif6ZoOAt/ZdtmdSV6InuwAz/1C9VnBRGP459T4N2OYSql4P4rcGBokrQCFC4kP/ZdqDf vnOzfc5OOiR/D+lE Message-ID: <844bd112-b9be-f63d-dfb1-42763fa83f0d@gydle.com> Date: Mon, 5 Nov 2018 10:31:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181105122610.1555-8-hans.ml.holmberg@owltronix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-05 7:26 a.m., Hans Holmberg wrote: > 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. You have the word "as" twice. Replace the second with "because". > > 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 */ >