Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp499844imm; Wed, 29 Aug 2018 05:26:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaUfP0duXP1NZ/WWGBqug2uKUplg6O/ntBg5H0liBT9h5oAgZxAmL5AHk/KWVScwgZfDOOO X-Received: by 2002:a63:2605:: with SMTP id m5-v6mr1734pgm.225.1535545580878; Wed, 29 Aug 2018 05:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535545580; cv=none; d=google.com; s=arc-20160816; b=ROGl+2bcJQAqCx68LPNJrX5JjxJr+VNg0+bGyCpGWeatpWPXEci87dwlBFkbo6E6Ou GkzZ9cI4/5gbsN6LzM4sEwXb8wY/pOWTOxYM3Z4Pp3ByShtpXS+bPziAJyc/KqhEoXTW s5TV6iZnc7ZLudN/4EuCmJ7XXABPeHzaLqMqwTtOiSjRaf+pTkUHQ95npBpyZYD48oae Szmo0ojdGPvd1fsU6LWZNbVmbpYxjmd1T5lzV6Ssws/HR7bpeCHooHtQWoac9GHP6E/K v3TTqfHU4bSN0Z2s6ZDjEX9G+1fMta/e9o4v6npmLv+wBzaZMvnnd1TrPz8J+Cba/Yop M/3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=lzDu+omVFir9hg9tJTLksPTFQvlNgd9rJmmR2DmzXbg=; b=s1mspeVO3QzJLh0ugTczsWs3iiaFlSVwuIEzVWRkJnPGMYBL0r1fynQyUSQdudJSOB rsGZdVHfV0Dlyu1pniY53jrCf3Q7wrL3ESEW7FcNZ6C3yzQMSpGwEqbJfAvByyiy6EAK LlPO9D3SVHQ5+9m7+BKSvVvS2B3c9xp+sznIZaQoruaa+nVR0E5t6aouZwm/fb3NSEXP ggo0D/MFdpLPE+OPjdFs+45+RdlSiYvUpRPnruNzFqyyf7d6Ht0qX6GAxFci935UBfSJ 5li9Hj1tRDTUhNfQ7tZ+4TNImnoOLULnfGZ6pvj5fujB9oftn9dFIxwkNLXTpPfQo3jM Sx4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b="Db6RH/OS"; 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 f7-v6si3576353pfc.174.2018.08.29.05.26.06; Wed, 29 Aug 2018 05:26:20 -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=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b="Db6RH/OS"; 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 S1728232AbeH2QUj (ORCPT + 99 others); Wed, 29 Aug 2018 12:20:39 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:38144 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728165AbeH2QUi (ORCPT ); Wed, 29 Aug 2018 12:20:38 -0400 Received: by mail-ed1-f68.google.com with SMTP id h33-v6so3777692edb.5 for ; Wed, 29 Aug 2018 05:23:57 -0700 (PDT) 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=lzDu+omVFir9hg9tJTLksPTFQvlNgd9rJmmR2DmzXbg=; b=Db6RH/OSi8kcRputTXCYNlu0oSblIVQhK+xt4Yk4qbOWWRaK8saQIGC8zvZBiJnrTS B1Jtegz9LuB4ayek/bCe3cfNUzfow5RRBi5fsUQ5yHsrqxxRvweK707GZ8YxKKM+eAFY 6rWxOH/ld/uufEDduKaMQrmSHm69EWnhhXP25AeM9HyGdyewUTjSCubfnISY3u7jIN8Q o4aRvuhhuHmddrXjKHGazXJdjgD43bDy7i2ewNBFjYp5uJ0PhOWpTcQyYQIBmqZHVRFg DCraqzLhxYT82fMfQZngw7+3eKf5EtDDt69UvxslLuwQhp9eFE7rg6X+wad8I1JptQwp qXOA== 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=lzDu+omVFir9hg9tJTLksPTFQvlNgd9rJmmR2DmzXbg=; b=q5Wn44YkIEOo3iQ92bXDg8pkjtXeXFM7H9WIOTEq2UlAKTsWymUQNaWQ9jCeKLAr7J 5gg7CkPTi1jQEEjB70gQWrOHnOvNR0woa8PdYA+G8eFFGhsMD5wPpJx/gDI23KqkwQWb 9uMf8mQIdCG+OxHpp73u+o/AI2ZgOLII5ooJaZPyVdX6tBX+borTyPQeqB1rTuBLLtFh fd24pKKv+0dcjq1JTIbZ21RZxfBr18/1RYVgMjNObfRqnjFB6kpjeHYmmGZiAIM0gEoU Pc4OAME1mjcm+/xcnS15eQFJKfUBfEvG5HWJFhFhEI5ZnRzkgNIm7SMP+R270RVoq6WO kMvw== X-Gm-Message-State: APzg51AYcl0Vaks6mKjlrgjqHVfrYZkP5wLQe7u2hpL2hWIJ9A+BtSGQ VXTcfaPaUKmchh//QQ9tD8SO6A== X-Received: by 2002:a50:b8c5:: with SMTP id l63-v6mr7182646ede.80.1535545437349; Wed, 29 Aug 2018 05:23:57 -0700 (PDT) Received: from titan.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id f26-v6sm1752068edb.28.2018.08.29.05.23.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 05:23:56 -0700 (PDT) From: Hans Holmberg To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Gonzales , Hans Holmberg Subject: [PATCH 5/7] lightnvm: pblk: remove unused parameters in pblk_up_rq Date: Wed, 29 Aug 2018 14:23:32 +0200 Message-Id: <1535545414-550-6-git-send-email-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535545414-550-1-git-send-email-hans.ml.holmberg@owltronix.com> References: <1535545414-550-1-git-send-email-hans.ml.holmberg@owltronix.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg The parameters nr_ppas and ppa_list are not used, so remove them. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-core.c | 3 +-- drivers/lightnvm/pblk-write.c | 5 ++--- drivers/lightnvm/pblk.h | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index a1033d82b9cc..f7bff3ae52ac 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1920,8 +1920,7 @@ void pblk_up_page(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas) up(&rlun->wr_sem); } -void pblk_up_rq(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas, - unsigned long *lun_bitmap) +void pblk_up_rq(struct pblk *pblk, unsigned long *lun_bitmap) { struct nvm_tgt_dev *dev = pblk->dev; struct nvm_geo *geo = &dev->geo; diff --git a/drivers/lightnvm/pblk-write.c b/drivers/lightnvm/pblk-write.c index fd67325f6e54..8aa4b9ee5092 100644 --- a/drivers/lightnvm/pblk-write.c +++ b/drivers/lightnvm/pblk-write.c @@ -81,8 +81,7 @@ static void pblk_complete_write(struct pblk *pblk, struct nvm_rq *rqd, #ifdef CONFIG_NVM_PBLK_DEBUG atomic_long_sub(c_ctx->nr_valid, &pblk->inflight_writes); #endif - - pblk_up_rq(pblk, rqd->ppa_list, rqd->nr_ppas, c_ctx->lun_bitmap); + pblk_up_rq(pblk, c_ctx->lun_bitmap); pos = pblk_rb_sync_init(&pblk->rwb, &flags); if (pos == c_ctx->sentry) { @@ -242,7 +241,7 @@ static void pblk_submit_rec(struct work_struct *work) pblk_map_remaining(pblk, ppa_list); pblk_queue_resubmit(pblk, c_ctx); - pblk_up_rq(pblk, rqd->ppa_list, rqd->nr_ppas, c_ctx->lun_bitmap); + pblk_up_rq(pblk, c_ctx->lun_bitmap); if (c_ctx->nr_padded) pblk_bio_free_pages(pblk, rqd->bio, c_ctx->nr_valid, c_ctx->nr_padded); diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 1a31fda3a9f2..1bdac22e7897 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -827,8 +827,7 @@ void pblk_up_page(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas); void pblk_down_rq(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas, unsigned long *lun_bitmap); void pblk_down_page(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas); -void pblk_up_rq(struct pblk *pblk, struct ppa_addr *ppa_list, int nr_ppas, - unsigned long *lun_bitmap); +void pblk_up_rq(struct pblk *pblk, unsigned long *lun_bitmap); int pblk_bio_add_pages(struct pblk *pblk, struct bio *bio, gfp_t flags, int nr_pages); void pblk_bio_free_pages(struct pblk *pblk, struct bio *bio, int off, -- 2.7.4