From patchwork Thu Feb 15 13:11:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10221179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88E896056E for ; Thu, 15 Feb 2018 13:12:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79CF6286CB for ; Thu, 15 Feb 2018 13:12:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E6D128879; Thu, 15 Feb 2018 13:12:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2780C287C7 for ; Thu, 15 Feb 2018 13:12:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031479AbeBONM2 (ORCPT ); Thu, 15 Feb 2018 08:12:28 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:44537 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031968AbeBONMY (ORCPT ); Thu, 15 Feb 2018 08:12:24 -0500 Received: by mail-lf0-f68.google.com with SMTP id c188so18082563lfc.11 for ; Thu, 15 Feb 2018 05:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GvQcUyYAySia5WKgCu5qSgRUs3UOkNfzA9cMvAuCEkw=; b=Tr/odZsTR2E0FNfUZ35oRwlTuhIIN7IhMulaRcynq3F8pwNA8zaY7R5pvcCVOIlPqg kcbf+1sKPno0b/7GLe7ZYZDQ03BQJpfIiz6mGQVU++GIQd1ArXHKyB+UpW3RcMogTtRW Q6kSqSP1hsjtTKJS9a6fWAdLdBhSlCkyhMk9F9qkK9JLtXMQvNlTdhFQHJs707s2knjV 3GiSscoWxp6HwHn8rLERgXc1olG1HH6/ZRoU9mmc1XgkVAZ/8QyYqlRTYD6rC7O5fi+X hIh+1bEfRikdg1hYBfj766bRkQ3vTz+T9xMsJWQ+MPq6iM0FrL6uG9jC23O3Ogs+EOhq Y0hg== 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=GvQcUyYAySia5WKgCu5qSgRUs3UOkNfzA9cMvAuCEkw=; b=b6Pq9xqn2ZcZfbed2OnZGP8sggGKjigGonim1l+1Hs6kOkG1nUQ8+UQXnqc44L2JBO 1RZICck8wAhaQVLnSozGHZa45xF4zBzOzm8/CZ0SuBBfYcSfLh9YuQRJnH+ZJZIGLYzH d5ytoE81Ca/BLMDS89eTPRN+1Woxf4xia0TB0rk+pmVuYlTKV7/jQR9tf4O8pMuF1U76 Zot98zbwJA0189tpgeLQkbVK/AA6lGugEiPvcNApXJ92ts7Tup9C+3tHlwcyC7iEaDQN 5zLy0EkMDqDnysxJ7ek+VbW2rQHXwiqMbT/+EWx/t3PBKIhTd2C7VGdfpDW1RIFy+UC8 1nuw== X-Gm-Message-State: APf1xPDARjJxQuT9Pazrt/v6pVdRFvUut5c9cbFcg5ptBeV54IYj3uBv nAVCsk3sggQJT8rjyH8cQPkL9qIJ X-Google-Smtp-Source: AH8x226QfQMEjq0nA9yN7ejjX3FfUoUylKIklfpTqhQDiTJI7NPSUpEw9Ja6xbrINSU+o7Mi4GU/2Q== X-Received: by 10.25.154.205 with SMTP id c196mr1756595lfe.52.1518700342796; Thu, 15 Feb 2018 05:12:22 -0800 (PST) Received: from Macroninja.cnexlabs.com (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.gmail.com with ESMTPSA id s7sm449295lfg.13.2018.02.15.05.12.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 05:12:21 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH v2 4/6] lightnvm: remove max_rq_size Date: Thu, 15 Feb 2018 14:11:58 +0100 Message-Id: <20180215131200.3354-5-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180215131200.3354-1-mb@lightnvm.io> References: <20180215131200.3354-1-mb@lightnvm.io> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The field is no longer used. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 1 - include/linux/lightnvm.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index 9b1255b3e05e..511c81c319ee 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -874,7 +874,6 @@ static int nvm_core_init(struct nvm_dev *dev) geo->sec_size = id->csecs; geo->oob_size = id->sos; geo->mccap = id->mccap; - geo->max_rq_size = dev->ops->max_phys_sect * geo->sec_size; geo->sec_per_chk = id->clba; geo->sec_per_lun = geo->sec_per_chk * geo->nr_chks; diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index b717c000b712..67b4fa8e4906 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -295,8 +295,6 @@ struct nvm_geo { int ws_seq; int ws_per_chk; - int max_rq_size; - int op; struct nvm_addr_format ppaf;