Received: by 10.192.165.156 with SMTP id m28csp1762636imm; Tue, 17 Apr 2018 05:14:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49NCDZ7zLkX0NycoG6x9N1mVivGYZV26LglQ0dHOQlQPxUeWXu72uXNqHAbDyDUCgeKChOm X-Received: by 10.101.71.138 with SMTP id e10mr1637593pgs.47.1523967295537; Tue, 17 Apr 2018 05:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523967295; cv=none; d=google.com; s=arc-20160816; b=dn1QhDjas53tXZySGLGKC1MtG3EfBVxvE5NrhX/Ee+ybfKXu6fnGZOdjgIW5qiO7Vs I7xaIGLDc5Uvjr8Z/JMs8hmJ/r1hSZd64AfI5BuoKbOfSpkq/34ZkiVwM3CSf6KYndBR u0d2vYVGrLlIYHZCUBXSpADLO0Tkc8g9VrbEEY6Jp0kEJPrA92XgUgOtM0NRY/CfrPvK EiSCSPaODfAZ2Pn8l1gKVoaLp1LL7N5Zqi3cNfTBLe9X3UiySqvhOsGVDcdwEru7R4P9 Sl6ig6o4bEyZKvpOdnr7qhi9qB4A+b26s38SKzcNEO9KWIso/NX7n4u14yiT0RWgfqvh owlg== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=w5JfP61pR3Z3V0G3YLV+2o2hTkXprDf2x3/LWiB0Ras=; b=Q+RoJcfwKBjYzNIP0UlYDWmFBGvs/TkCJt2Uyk+ZCUFiEsXQXl4fXb9bvKF0Tmwmmy i9BFV7NYHSUhskG6ELx5+KqMEYPZmcyFgnn/M5BgQNjyVHn00Gl+SMYFrWaiXs4b9NaW DMs5KLpoNvA92hRd5LlD1KdzMgtN0f2eaFB5IORap6lG84RhYhaWvvgnpV6/wemX7X2v GhBMaBqtXX8+1nT+eLZFW59iMa5Q5pt72z7ZTIxWZvjiLWbYK9G/q7ePZh+YsCuofrgL EBWCToxEO317o0msqkMOdumk8Dkt3JEsEsgMYuX2eV9up9ikIXo3SruxR2+aHi0JBAuc 6Wgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=ebyI/lUp; 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 h186si7708015pge.324.2018.04.17.05.14.41; Tue, 17 Apr 2018 05:14:55 -0700 (PDT) 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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=ebyI/lUp; 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 S1753068AbeDQMNG (ORCPT + 99 others); Tue, 17 Apr 2018 08:13:06 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:33398 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752743AbeDQMNC (ORCPT ); Tue, 17 Apr 2018 08:13:02 -0400 Received: by mail-pl0-f67.google.com with SMTP id w12-v6so10962367plp.0 for ; Tue, 17 Apr 2018 05:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w5JfP61pR3Z3V0G3YLV+2o2hTkXprDf2x3/LWiB0Ras=; b=ebyI/lUpNyNC7/DdxlJwLUeKY5KYFrpH5LLH5LDuSecEuMvSidrAcSHmMoQWsQqFAt kkKPArox0QymmPoWduxfl08rbEdDDyfeCUU5B77kTGoJAl6+eq740lifq7QjqKGFwpWX 8/W/69XF8LIHTJQlIXeL1Xgt+BaTId5sIgL3I8b4fjxJdecgRp59OLi4tSOMQiiJloVz rk4zxDynV4Mxo/CkJmzwRM1D51FMSsYW6Gk8NNai70sgqc936VvNaXir2PoP8kGEbq7K YoFt0SbWQR3P1S0x0xMSzLbI0W8+pKOEwf2jX9S1MH/2sSWW3BXWDVIeWGe1emKBCKZV jG7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w5JfP61pR3Z3V0G3YLV+2o2hTkXprDf2x3/LWiB0Ras=; b=k8/g/EvBs/rZte/3GLMyRfxyVZI7VLLcpE9eYFGyk9P/y6em0cXXAqQ2gAxeJ9GznX liRzBoGSbVXYCAdgqXmVJhHvkjMEPmxcIWEJhE2Yu28umbT/EwgAW/xvLPKVp7zNQepT hD5iSmLywzRv2j0lkq+pn2z26XkoRqu5E2LxJojI9P/iuwFpp+jfJZV9oXhFVhOE6AIK EBjebZMmZTOvtrg+GkoYBeXmfyayME69dRFZZsXLBL1sONCQnNJcEDvnBosfVPN0GlbD qMlF3qvJZ4AQeXrbP8S7DAiVlGHH9ki2ji7mBzOh8xjjcWVuuF61hvGRgOVtEaLFydsg h4Gw== X-Gm-Message-State: ALQs6tDQPavb7c7tTDEMJe5oXVUWufXQSPWXcO8wgWsm+BO4Oxkom9lt qslyjdq730BVDUb7aQKAkBZdZw== X-Received: by 2002:a17:902:5609:: with SMTP id h9-v6mr1839204pli.121.1523967181992; Tue, 17 Apr 2018 05:13:01 -0700 (PDT) Received: from C02VV2HXHV2Q.local ([104.153.224.169]) by smtp.gmail.com with ESMTPSA id x25sm13602219pfn.124.2018.04.17.05.12.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 05:13:00 -0700 (PDT) Subject: Re: [PATCH 08/11] lightnvm: pblk: remove unnecessary argument To: =?UTF-8?Q?Javier_Gonz=c3=a1lez?= Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Javier_Gonz=c3=a1lez?= References: <1523874332-6272-1-git-send-email-javier@cnexlabs.com> <1523874332-6272-9-git-send-email-javier@cnexlabs.com> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: Date: Tue, 17 Apr 2018 14:12:48 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523874332-6272-9-git-send-email-javier@cnexlabs.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/18 12:25 PM, Javier González wrote: > Remove unnecessary argument on pblk_line_free() > Why was the argument no longer needed? > Signed-off-by: Javier González > --- > drivers/lightnvm/pblk-core.c | 6 +++--- > drivers/lightnvm/pblk-init.c | 2 +- > drivers/lightnvm/pblk.h | 2 +- > 3 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c > index 6bc0c7f61aac..1b871441d816 100644 > --- a/drivers/lightnvm/pblk-core.c > +++ b/drivers/lightnvm/pblk-core.c > @@ -1337,7 +1337,7 @@ static struct pblk_line *pblk_line_retry(struct pblk *pblk, > retry_line->emeta = line->emeta; > retry_line->meta_line = line->meta_line; > > - pblk_line_free(pblk, line); > + pblk_line_free(line); > l_mg->data_line = retry_line; > spin_unlock(&l_mg->free_lock); > > @@ -1562,7 +1562,7 @@ struct pblk_line *pblk_line_replace_data(struct pblk *pblk) > return new; > } > > -void pblk_line_free(struct pblk *pblk, struct pblk_line *line) > +void pblk_line_free(struct pblk_line *line) > { > kfree(line->map_bitmap); > kfree(line->invalid_bitmap); > @@ -1584,7 +1584,7 @@ static void __pblk_line_put(struct pblk *pblk, struct pblk_line *line) > WARN_ON(line->state != PBLK_LINESTATE_GC); > line->state = PBLK_LINESTATE_FREE; > line->gc_group = PBLK_LINEGC_NONE; > - pblk_line_free(pblk, line); > + pblk_line_free(line); > spin_unlock(&line->lock); > > atomic_dec(&gc->pipeline_gc); > diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c > index 8f8c9abd14fc..b52855f9336b 100644 > --- a/drivers/lightnvm/pblk-init.c > +++ b/drivers/lightnvm/pblk-init.c > @@ -509,7 +509,7 @@ static void pblk_lines_free(struct pblk *pblk) > for (i = 0; i < l_mg->nr_lines; i++) { > line = &pblk->lines[i]; > > - pblk_line_free(pblk, line); > + pblk_line_free(line); > pblk_line_meta_free(line); > } > spin_unlock(&l_mg->free_lock); > diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h > index 856ac41e1201..ff0e5e6421dd 100644 > --- a/drivers/lightnvm/pblk.h > +++ b/drivers/lightnvm/pblk.h > @@ -766,7 +766,7 @@ struct pblk_line *pblk_line_get_data(struct pblk *pblk); > struct pblk_line *pblk_line_get_erase(struct pblk *pblk); > int pblk_line_erase(struct pblk *pblk, struct pblk_line *line); > int pblk_line_is_full(struct pblk_line *line); > -void pblk_line_free(struct pblk *pblk, struct pblk_line *line); > +void pblk_line_free(struct pblk_line *line); > void pblk_line_close_meta(struct pblk *pblk, struct pblk_line *line); > void pblk_line_close(struct pblk *pblk, struct pblk_line *line); > void pblk_line_close_ws(struct work_struct *work); >