Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17178163ybl; Wed, 1 Jan 2020 23:55:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyPFtIJDdirJbkqsRn0xbbiLS45HdlKryqU6LlJctQxTeSE83MzM+orNlfXsOsvYuARCN0h X-Received: by 2002:a05:6830:12da:: with SMTP id a26mr67696318otq.223.1577951714900; Wed, 01 Jan 2020 23:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577951714; cv=none; d=google.com; s=arc-20160816; b=DcLHcMC5TtZmOVNhrEo9nnjrrSyH90zQXoCBd0cjJglFsiZQLzdJGCYe4t5sUNtirj zTfNoQ2IyGo+eVywkL89GxM9WYGJkOYH1SMtvBzCyHpciuuNIbhcKzBhVU5d6qvvT2Xc w4hIV3sIDPgAzR2Ba0SqhOkn9C9MLTjsgeMuGbhyKYDxlUl5oeM0M++K3dyxpr9JsrTP fWnFqfVxxjLLm1FzFv9xGk3UBgkrM8WCn9lGSxsBRRUH5HOaaf0GlXcatWx9CaWQmqgY NNFWkKhtlDeyZMFia9mo+xyuA5WwXZcUHFEkbhcVJ3Q+3CRUHp2sAx25UfuQXnjbNLEj As9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=RlibLQQganA2BZ89ch7dSkDd5ROuDmDBz+7MfRKKRsw=; b=HjB1iK8FZYaJkYCZ4bDzWyX3klHmcmiKHkM43UCJcONS5xzOy40IbvpQP3AF0Snvhj VDxgD9bpN2JM4TcH6R2MFoZTLo8odRMbmiqiySKKWEeztnT8q6g1r036Rbe3SVc6imXD /BOj6mmOGuNiE+rkD6SSpVnazOr0Di3uUgV7d7v9wNs6grBfEWXYICK0TWvyjRt9nZok mhF+RuhAA7lU/R8cbx0BAv7UD1BuM7QTktyux3jvb1dVjChom1222oqI1qfyHRvFJftd 0u2IwdU8LZUvg4Muf60RhXcVDB65lcrXzpC/h4jctRe38EV4eygQzak9EGkZ+RNQrpQX /y1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Vg4tM9Ws; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si27723140ota.299.2020.01.01.23.55.03; Wed, 01 Jan 2020 23:55:14 -0800 (PST) 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=@amazon.com header.s=amazon201209 header.b=Vg4tM9Ws; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727828AbgABHx7 (ORCPT + 99 others); Thu, 2 Jan 2020 02:53:59 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:19249 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727767AbgABHx7 (ORCPT ); Thu, 2 Jan 2020 02:53:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1577951638; x=1609487638; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=RlibLQQganA2BZ89ch7dSkDd5ROuDmDBz+7MfRKKRsw=; b=Vg4tM9WsSJ5EkkuakHUyAMxgZ2+Mbja2rMcFU/ET9tFFwx9FxI1MLjFD yiNG59A+gCAPJeOwkcY0+D6/pl+qPTqicV8llmCYKAVFkhrYlyCcKs+wT G+YC55SCupAwkyA31x4uJ3P6183zzknphFLdGWS31Z1GESQqlj0vSFRPD 4=; IronPort-SDR: PPLhSY4jNtRBa2o7qMz8aHt3QgFdThFlbslEB5/L+ZcMKItPHVxhHM7qn/Q5Y0LGcfjtOs8+LX D3R9mD+FVJHA== X-IronPort-AV: E=Sophos;i="5.69,385,1571702400"; d="scan'208";a="11240006" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-a70de69e.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 02 Jan 2020 07:53:57 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-a70de69e.us-east-1.amazon.com (Postfix) with ESMTPS id 93F49A1F00; Thu, 2 Jan 2020 07:53:54 +0000 (UTC) Received: from EX13D01UWA003.ant.amazon.com (10.43.160.107) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 2 Jan 2020 07:53:23 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13d01UWA003.ant.amazon.com (10.43.160.107) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 2 Jan 2020 07:53:23 +0000 Received: from localhost (172.23.204.141) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 2 Jan 2020 07:53:22 +0000 From: Balbir Singh To: , , CC: , , , , , , Balbir Singh Subject: [resend v1 4/5] drivers/nvme/host/core.c: Convert to use disk_set_capacity Date: Thu, 2 Jan 2020 07:53:14 +0000 Message-ID: <20200102075315.22652-5-sblbir@amazon.com> X-Mailer: git-send-email 2.16.5 In-Reply-To: <20200102075315.22652-1-sblbir@amazon.com> References: <20200102075315.22652-1-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org block/genhd provides disk_set_capacity() for sending RESIZE notifications via uevents. This notification is newly added to NVME devices Signed-off-by: Balbir Singh --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 667f18f465be..cb214e914fc2 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1808,7 +1808,7 @@ static void nvme_update_disk_info(struct gendisk *disk, ns->lba_shift > PAGE_SHIFT) capacity = 0; - set_capacity(disk, capacity); + disk_set_capacity(disk, capacity); nvme_config_discard(disk, ns); nvme_config_write_zeroes(disk, ns); -- 2.16.5