From patchwork Thu Mar 29 22:05:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10316551 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 9CB9D60353 for ; Thu, 29 Mar 2018 22:12:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85320285CE for ; Thu, 29 Mar 2018 22:12:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79EA1286B4; Thu, 29 Mar 2018 22:12:53 +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=unavailable 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 2B313285CE for ; Thu, 29 Mar 2018 22:12:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752571AbeC2WHU (ORCPT ); Thu, 29 Mar 2018 18:07:20 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46374 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752545AbeC2WHP (ORCPT ); Thu, 29 Mar 2018 18:07:15 -0400 Received: by mail-lf0-f65.google.com with SMTP id j68-v6so10302467lfg.13 for ; Thu, 29 Mar 2018 15:07:15 -0700 (PDT) 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=np5ewT95QzZkIlZHZPfhR96nB7m7MeHQjk/ofPqG560=; b=pXQuBw8OUtuUHMqduIBvjVXhqte+Le8ose4UOHnly9kHCIc2JdOn9DtMu7Yt2pI1K7 ZYXgfOE9/F2JuuAOjdm7RIJbRZwpAJ1Z8hNSZ1Uvq8EcrLIANDsTPH5h1gfAeRsXwBWE +Ovc9vGqXYrGVR+IqqZ+lMGZtaThD7X0mEpQ7MxOkSIEBCdztMBFr+N1as32zhsss/Eu BoeC/pxBaFbWeoSkq41Bm0l3weacWr36PyGvG4tXGGR0ovVUknOM9Rmu69g7MHXbxa8t +T9B+TjZBDZ+CJC0jhlGKGnVu7+j6Ut6r/rVnk0njNL9tYYF0GQd28iZID/u7MaK+VBA I/Gw== 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=np5ewT95QzZkIlZHZPfhR96nB7m7MeHQjk/ofPqG560=; b=IaD+fbahjlMilUK0BsTy3rlVTnGV9CLwz8VI+janrIXpKGggzB5+mjdwhYoQ3aOxo+ 9Pvm0woIepkv/z70nqP/CB9Z5D2TDyv7CVc1wCKknkLQ3lxWOgh+9C6gHa1/+kpFARd/ GzwPZXOv9Jch08yPcrqwZn56Zn8r+43QW/0MBdPsa0pdp2WVzvOSIxD9gIYArjexWzYL QZXscsOmMpArieWcSU9K83iN5LdcCJWHN/wcJHqJuSZiRRmfEBqRc0M6+IRZMxV5I3eB hmN/ogJgtcKYhk57rF8eF2HzMEc4VMOqFyJhJex43jLHoJfg9tWuJtTUlxj8wcDiplrA CjBg== X-Gm-Message-State: AElRT7Fz91P91bQ5bNQ7MGuZOJmIeGjSTy6PjgGSh0Tb1B/xWjV0Gzir xZEoFbA8vpPgcBcgAxVyjfqseg== X-Google-Smtp-Source: AIpwx48Wv9z6NsxrWjLD4f/FuTuiGTPieZoYmRFBJ28sOAonoXtcoxK5jb5N8r9vZQkjK61VdNDMmQ== X-Received: by 2002:a19:1c0f:: with SMTP id c15-v6mr6218260lfc.44.1522361234333; Thu, 29 Mar 2018 15:07:14 -0700 (PDT) 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 i89-v6sm1365508lfk.12.2018.03.29.15.07.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 15:07:13 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, keith.busch@intel.com, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 16/37] lightnvm: remove max_rq_size Date: Fri, 30 Mar 2018 00:05:03 +0200 Message-Id: <20180329220524.30363-17-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180329220524.30363-1-mb@lightnvm.io> References: <20180329220524.30363-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 521f520a1bb4..a59ad29600c3 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;