Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5904684ybl; Sun, 22 Dec 2019 17:42:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwRAEsoOoMNY5JYy1OAn86XX0CnwJf5bvroXWGOKkLooI/pHHzHcY4NLhpyuh8JV1ZC1SXV X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr30451968otp.339.1577065334063; Sun, 22 Dec 2019 17:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577065334; cv=none; d=google.com; s=arc-20160816; b=dKO9qtifE2B26fyEsl3AqJXrOo+QMfP0xOQquXRVtfO4sMCthXOsqZcQ2zCYK2XVIb CCHjDPyNgvvCTT7wj/k1eefY3mYBiUlykO7aEPgS/oxXf9PHDNwn+vihp9DLbyFg6ig8 absQrtA8PrzoaSyvYMS7o9GYFTWpd3WW3PM/ZoJ7w/az4Iaur4NwRrPUlKoC9jqnBrAu zVhmYWW2BBDrwdNO054aLeB0wOEVNzJ6uT93Uk18FQC1kvsN9BQITSX6Y0CeVpYdQKfj MBYMwQc5++3U0vVLCXBGV88LVcdLUA0dHgQBLI/UBTQ1k3A8l7izLH5weCSmwzQoI46f RIFA== 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=lBcFVicX/cUpt26gI7tqbSSWSX6iFvoJTgf/xqKiRUqf4jSW/7HCXK0rD6dSPd9o+d ydrorB2vGDwLYwULe6zRK4ORVOuwJw85YVtIZFOJBklHaJDQVTr/ikvPJ7K7G2Jxf0fO h64g6n8PwKIMs6UHrNxLqiD8Kd6/y+xduRdYimt0hIUttZpSBG9SEP1/gFVSf3eH1cQU o5fcCTK5FfMj4nSATPcKFkIUdJKrNmqjLPQPjxaIgZC2bpOgQJadezqzjnLPqFeQxC3j WSRz3Q6GzlAl42CTacR36amp5lBTKZafOueTVSJqjscErU7MBGeOKfAVMNfepl98tnv9 BtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CGZ07YHk; 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 19si9130593oiq.128.2019.12.22.17.42.01; Sun, 22 Dec 2019 17:42: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=CGZ07YHk; 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 S1726826AbfLWBlX (ORCPT + 99 others); Sun, 22 Dec 2019 20:41:23 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:1431 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfLWBlW (ORCPT ); Sun, 22 Dec 2019 20:41:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1577065282; x=1608601282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=RlibLQQganA2BZ89ch7dSkDd5ROuDmDBz+7MfRKKRsw=; b=CGZ07YHk6vFlJysSQE025UIusscQ+05OqHDWKD7L7zHyBHtcUeIWctVn RgrtaikZPIuO9RWixQ2qJV/I8BmhpKYd/N7THwsQ6/xNfHU83rYREZ0N0 h/k9bAyDV/WQXN2Oyy6ExOv9SbdnYQvncrQPxMkNRBHrBwPQp1BlU+qiU 4=; IronPort-SDR: Bmoh4timfgSx7vuZf+8aMHQtJ6XKPirWxE2qiTLXh/9Af8BFjqNHQbjvZJogBg7fOe2k0hgpBn Fois3c+hnpSQ== X-IronPort-AV: E=Sophos;i="5.69,345,1571702400"; d="scan'208";a="10232404" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-859fe132.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 23 Dec 2019 01:41:20 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-859fe132.us-west-2.amazon.com (Postfix) with ESMTPS id 338A3222A01; Mon, 23 Dec 2019 01:41:19 +0000 (UTC) Received: from EX13D11UWB003.ant.amazon.com (10.43.161.206) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Dec 2019 01:41:18 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D11UWB003.ant.amazon.com (10.43.161.206) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Dec 2019 01:41:18 +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; Mon, 23 Dec 2019 01:41:17 +0000 From: Balbir Singh To: <=linux-block@vger.kernel.org>, , CC: , , , , , Balbir Singh Subject: [RFC PATCH 4/5] drivers/nvme/host/core.c: Convert to use disk_set_capacity Date: Mon, 23 Dec 2019 01:40:55 +0000 Message-ID: <20191223014056.17318-4-sblbir@amazon.com> X-Mailer: git-send-email 2.16.5 In-Reply-To: <20191223014056.17318-1-sblbir@amazon.com> References: <20191223014056.17318-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