Received: by 10.192.165.148 with SMTP id m20csp3555276imm; Mon, 30 Apr 2018 02:13:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZreRp5MnovUmHAcCtYB/ABrsg2nGpcdvM3MGkluYCkYX5Et8OHg3YXMQsaNcQQR3wAbMzFf X-Received: by 2002:a17:902:598d:: with SMTP id p13-v6mr11725919pli.191.1525079589900; Mon, 30 Apr 2018 02:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525079589; cv=none; d=google.com; s=arc-20160816; b=n+ncHFCqetMBUNRdtM4CVZaEp3YUuHY70duShgLxK/KVpVVnwpZsYxmZ8BARe5c3Ar 9Bg/lYq2tFYmmRSMasObgo+gE+HozYkhFXTae4SvQbiQvNssWaOMj5OR1o8jVNOgMpP2 szrtofusCvGPrHJKDOxZjSx6CcVThTz7VpivEdO6xc8lyXlwRwruIJslo1xtgXbj7xt8 A1CUrSBjMXtV3JH16v1gZVEuBpUpFJtifquIlpVctbm/AgGI6oDzneDnk/tcYf+t6N9U 8XOtikuV6qwkzIm3LKNfwAb8hmDyfSm9fZsq/qAu6v5Vyna+rJ54pnKl38Hqm/IkWUWg Fkew== 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=tRYfTA0q7/CvWAPxZGW5zJ9l0BePtM2afTaer6+VG8askjcWpcCvpAWKMug7aOod/V tYfJWw4ic0ASaQpNkXxofGvKc+QpJPah7TAuxMGTPyD2oUEpdQ1YWK6HWEUEmj99cZzY ekLeruL2WFSmWI31Pja3/W4tBzi9Onj10r7BybkgH8zfctk173BplpoJUfbbnJD9aYD9 VyzAGlC6wAyUGy2vNxbVgO5leG/ScAEym+d3SAENXaAEc6PQW36bhM+SWQFcZavEQefe 7OCrUYkhvN39KbgzEnJQ//4fb1dKXNqSo0XS2/p7XmqIE95aWlXlBfadQdl6qFqdrEEC BA3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=xIvFhQ09; 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 w68si3344006pfb.325.2018.04.30.02.12.56; Mon, 30 Apr 2018 02:13:09 -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=xIvFhQ09; 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 S1753812AbeD3JKf (ORCPT + 99 others); Mon, 30 Apr 2018 05:10:35 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34336 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753754AbeD3JKY (ORCPT ); Mon, 30 Apr 2018 05:10:24 -0400 Received: by mail-wm0-f68.google.com with SMTP id a137so9303619wme.1 for ; Mon, 30 Apr 2018 02:10:24 -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=xIvFhQ09uhtgMyBfJA8uOsxb07zpaiwhBQcxOoQV+S3+p5oQ9oFvUwVERh6S9DigCS 1UqeVljDZhNyZVMW6Qp+bH+E16xPu8zlW5pfAPv6pOSsEbiQ4ZAk56XxLKApgsgtHqAe 2rWMKz6+4qx02Q05VCeM2GTfzsAn/jdbjOHOEwtFNqjJz/HaQT2Kp78gPJcyHr0Z7qzT HgpsW9gnYcT862F7ooEy77evAGJlZY+XXLzUGjejsv9M2baPT1BIEIofVZW6pJP6Qrzd lKo4k5/SoAgkOb+V2Ehq8MUsKnESbIECb9HI51/ipDojgf8mOYTOgMEGlQhlIpcaWOSd XHJA== 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=tTZc9wXICOIDly+MwlxxLi+gu8Fhm6jCk9N5Lx475Zi8hbY6rvnLW2WmnlvfSAmVCT mROeWwfjQttqDr8zx3cY4o9g8JH4oWOzG0SgbFdr28IaCdMJfLMV5J/YYTAp10OQZEwT 9XrlmLwN0CIveb2m9pHLISFt+XjknuIH8WRM4dCWRhobgUbzWDx604ZJ2BwHHCuUlQEm lCLFBiDyya1hHk7tpqfFk75ANKm+B4aIYEE0BfcFQNUGkComThxfxM/VCNe/p7N1OBWL YIcmTUAXvHxlC1tAWLlk/HBt1iS3a4vB7vkIq/Kj+teSLimQQzzgILxxp8mw1jqffu2D wYsw== X-Gm-Message-State: ALQs6tBtjWDk1Od7YBzG+xu0ZviY1Csk9jIbvOtZSkducikTs51eOs/A 9Kye9ecdddW8i9A9OnQtERNa7Q== X-Received: by 2002:a50:b2e4:: with SMTP id p91-v6mr2241590edd.84.1525079423449; Mon, 30 Apr 2018 02:10:23 -0700 (PDT) Received: from uhalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id b56-v6sm2108638edd.85.2018.04.30.02.10.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Apr 2018 02:10:23 -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, 30 Apr 2018 11:10:06 +0200 Message-Id: <1525079409-6588-9-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525079409-6588-1-git-send-email-javier@cnexlabs.com> References: <1525079409-6588-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