Received: by 10.192.165.156 with SMTP id m28csp467424imm; Mon, 16 Apr 2018 03:29:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+T2hfoxFPH+qLyXoLyczfHxmJrmxl7Dyc3gmjJ382IO/3EeeBXBixjijyT4Y2sttV/46bs X-Received: by 10.99.109.129 with SMTP id i123mr5399157pgc.319.1523874596562; Mon, 16 Apr 2018 03:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523874596; cv=none; d=google.com; s=arc-20160816; b=cIpEVBkeAJCOGFCXev0TjZ0FDfAkJUtkwm5Cnn9XQF9MQJTS9nUEDjih+8UutDyEHw 1rAF5SFS1y3WYrpm4uTzng9pZjI4j2Tne+uijIqewItVXIcPAtjfOhBh5Mqc4CsD+bca XO9hKS+AAnIpW/qF6PQRV/iv7qRymz66+tBlXi3juq4PiBAJYDVlPJ20dj8bNUDfX0NN BSKLgVVzB0o572i9gosR01uSu+WoNHuqKxrXW7ARTllwKWVqUGXng75aCf3CFGqmfisV 6TPYoH/7cUIU7HJk3S//FiyhNBXUoHqdzoUayTpMTVPvEZCJ6gOTu4kKctaXmPGRJYEN 1N0Q== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=x9FMhL9VTf0QxnBud0dgQmF6Rx56eKSwjUEIZvDfRik=; b=E8vraNxths7q/qp7GRO6Bt89KHGpXRagPUTn7a7njllj3+L3Gb3jDu4tuZ24zzTV3c J4RxDRhFn19fd7ocm1GZ1PIBNFg3t60cXfp/g5qrdYEC8+mMNak92S6S54zkIXcpslLD eogA/2YCGtIHN52f/m6bv57jPhh2mdZWPTg3CNLqEndRuAEbF9DWIqRERSAwOKYbW6aI 7ai8RCNg6MSgM64sfOuARyiz4eq74GTYLJzPpZ0VMBtUpqeQpN6wUfK7bAtrmJ/zgaMJ TgXc4UNoYFWzmdMrMQ+F9+fHNq+zSgfiQaoGulTtwAWbrpDGrOBrnBR7AP+goPAaLuBC SVAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=v0hQpJWy; 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 131si2444185pfa.246.2018.04.16.03.29.42; Mon, 16 Apr 2018 03:29:56 -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=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=v0hQpJWy; 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 S1754776AbeDPK1F (ORCPT + 99 others); Mon, 16 Apr 2018 06:27:05 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45967 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754106AbeDPKZs (ORCPT ); Mon, 16 Apr 2018 06:25:48 -0400 Received: by mail-wr0-f194.google.com with SMTP id u11so24436715wri.12 for ; Mon, 16 Apr 2018 03:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x9FMhL9VTf0QxnBud0dgQmF6Rx56eKSwjUEIZvDfRik=; b=v0hQpJWyGyhIRjQLMC55VKgdFHZxO2U3ZtQ3h28tLghlYXPp2edUAaef4Kx7XPDG9l dX282DSeIQMZUch1OUk1qdcl4fI334fgrSEDAaXqj7vXSHYJUORCAAwLVyuCP7j2jx62 Vu8r4A8xK68Txhii2C6VhP4h2oag/DD9PAYALUCOX7zJmtJ0tkrN6TLKU19YmHWtUMy/ GrfEOyRF2Gd+2Hzu2qMpJdehnA15H8CAocLY4zA9p2gmUyVuwfXY5OXtvXbm3NTAcFru wuRfrMZQoQ+UmhG9qG/Bf5zhoboC6fGra/dkvXQLGj2XWy1SJQCNEcROriCtNpX2YX++ PzBA== 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:mime-version:content-transfer-encoding; bh=x9FMhL9VTf0QxnBud0dgQmF6Rx56eKSwjUEIZvDfRik=; b=hweKPojgJgDWRYIPLkiH6CLt+62Di2xp0bM5td7GVwBtKsHTPJ2Dt1wzHFmh3Gbzig egDIC291joIR0sZWjoGR9aimts5YHDgme4tYCZSFvzEVQNa7TympC8HrMx6AkFm80eT7 a64X7EzHaYhN+uwymNuS/RGoIGZmMwAocCdFqQYhoOXlOVm2KBz+9ne6VcZnPGRUqmJy cBOyOjtzRJ+q1WjF4GMPz+/A9Fg2uZdee21QHEY+rOUHgcHtDTyHHxqO9E1/McwcIHqv SMwfp+HpHRpHXKFE/CTbRn/ke29+sYZ/HJYqP0APCfCUAittTRJyMPz1LYqKLutb8sMF Id8g== X-Gm-Message-State: ALQs6tBV3LgonNQbIbDdNV8CnJqVW2bcMrGZYJ3z6gmgMYeKoPtejwyW 2RXWKy9Xn2QVh0wmUo2KRqUAPIVB X-Received: by 10.80.168.69 with SMTP id j63mr4635794edc.210.1523874347701; Mon, 16 Apr 2018 03:25:47 -0700 (PDT) Received: from uhalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id q11sm4250074edj.2.2018.04.16.03.25.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Apr 2018 03:25:47 -0700 (PDT) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 08/11] lightnvm: pblk: remove unnecessary argument Date: Mon, 16 Apr 2018 12:25:29 +0200 Message-Id: <1523874332-6272-9-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523874332-6272-1-git-send-email-javier@cnexlabs.com> References: <1523874332-6272-1-git-send-email-javier@cnexlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary argument on pblk_line_free() 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); -- 2.7.4