Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4056379pxb; Wed, 13 Oct 2021 19:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZNnbx/E+3OAG5DSHaaIUNuFc3oqVwJbzOOk/mzkWznPq3Gq0uh8BEMcQZoEs9XeSDnvOH X-Received: by 2002:a63:1d63:: with SMTP id d35mr2343632pgm.238.1634179514495; Wed, 13 Oct 2021 19:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634179514; cv=none; d=google.com; s=arc-20160816; b=g8Ai2sS9sg2rQxzflJD1si9WCu8q9djXsXWhAR7DCGa4HIx0RtSFhACwh7yGIqAZdn xmckNWB3cuVMLtM5+bMQUOEmHEBaSymAI/PQ+NbYWQLeLTkDpgpHO733mEwtK6ZuV+eb iOP9sN9z6/Y5IqtOEGB5+OjZ0WoYtluXsPydQoGBSDNmCGrC8rbpTaVV0Y/9gJHw+jKt wBJ3LNNvLfhdAg1Ny+C1dJnmFD2kGA8/spA/KYloK11Rw5gzGrKNMuhgDp6Y6HzXrVTM 8jEXa/qShL9nHFCnH+ZgetnG9KLxG5t9MpRwkrwDkcIRxnTnU3i6c5VeQIXlXKcu9Hts XmoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=It2mkzx6TjfzrxKa1z+glKX99V3LF5sLjb+XStt8Wuw=; b=W+2ky2wti18/+Op7Zb2qNsFy2LXWnVyKmzCbuHLTwIXWHYm18SyB2+wL1H/Aod/MRs Hxw1XajwXH2TPRqzcmU9KU/bsocTVrJfR2fEjRHEm/P28DUwfpHxFOAjkhZpB8Qwo0uH nBFbaBIfUdOrfPb7xDmIHtTScj3RJYNd+y8saEdNtUfck/mAV/fZpxkUu0VLBUS32fZ7 j6bq2N7lBryXb9NI8QQJxoLcnYTFBhxcMcucih3McXeSrbqpx/0eKS8dWjLeOwCFZeje KCTsda9QLD8PGFAZEut8nZMfwXwUHtNllLcHLLNm6S/kcbGcrjuL6YkhvBirrx+ZUYNo RyRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Mzz6lXM/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t64si1960256pgd.368.2021.10.13.19.44.46; Wed, 13 Oct 2021 19:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Mzz6lXM/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbhJNCqr (ORCPT + 99 others); Wed, 13 Oct 2021 22:46:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:49396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbhJNCqr (ORCPT ); Wed, 13 Oct 2021 22:46:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94F2A610E7; Thu, 14 Oct 2021 02:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634179482; bh=It2mkzx6TjfzrxKa1z+glKX99V3LF5sLjb+XStt8Wuw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mzz6lXM/GRSQKnipiuaTPceCHZUCG+Zwebj9V2e3D3u8BDYOSVlhmPweg8g6YiI8d r+FzG9sPVr+Hk4H2lOIBtjdINIDEutvPeEs53/z+5bq+4EPnsRZGELeTPAvwoMl5bY D5WR/vTtqwKDBMa4OMVf2PvJL0TBX8SE4EyM+00T66l6gCQbaCkFBvjZHr4BqEXJ5u yuO9zeVQIl48uQmyOc9Be0MLM+3GoQiZYDItlKL+q86y0ZlJKAGDhfO7K6kMaufy3f D7Hd7Q0saLd9aej/pORbgOIvPmwFjh+idyJi5NYgYOFIwSmTP7R1qlYbeAyhEajjn0 kkbqUUfNjdm3A== Date: Wed, 13 Oct 2021 19:44:38 -0700 From: Keith Busch To: Christoph Hellwig Cc: Jens Axboe , Coly Li , Mike Snitzer , Song Liu , David Sterba , Josef Bacik , Theodore Ts'o , OGAWA Hirofumi , Dave Kleikamp , Ryusuke Konishi , Anton Altaparmakov , Konstantin Komarov , Kees Cook , Phillip Lougher , Jan Kara , linux-block@vger.kernel.org, dm-devel@redhat.com, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, reiserfs-devel@vger.kernel.org Subject: Re: [PATCH 11/29] btrfs: use bdev_nr_sectors instead of open coding it Message-ID: <20211014024438.GG1594461@dhcp-10-100-145-180.wdc.com> References: <20211013051042.1065752-1-hch@lst.de> <20211013051042.1065752-12-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013051042.1065752-12-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Oct 13, 2021 at 07:10:24AM +0200, Christoph Hellwig wrote: > Use the proper helper to read the block device size. Just IMO, this patch looks like it wants a new bdev_nr_bytes() helper instead of using the double shifting sectors back to bytes.