Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1993988pxb; Sun, 17 Oct 2021 03:07:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIOVO3DV7arBe2o3BkTctFtYSkPd6DMmJeXbKxQGUNWZYtN8SsvTU50CzJurYu0qT2PeDN X-Received: by 2002:a17:906:1287:: with SMTP id k7mr20586137ejb.342.1634465255824; Sun, 17 Oct 2021 03:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634465255; cv=none; d=google.com; s=arc-20160816; b=kl9aXyDmVc5bF3P84KGpo1WJGiZ6DH8l9EeVuhiEeRxQkxCw8Acoq7ont2xLQQ+4dD f3z9+Mh3xtaRebXQHuB6UcXve/uUPnojsYfa+A2DURV4t7SoMinaPoV8XwqN7iN0ymdx XdxiD/yTGKCd9HPFgg+zB8/vsGBZri940a5b/Z9loSgis9ON+/UgtzAZeA6eathoSjQj L1U7Vz26nd1BtYW4oBO4isQ1N5JBX8IWdpQGlNT8tD4+k6ezhNXUEmjB3tJ7IivVvdLC XuietX3i4MJmUlIj9LyUiseXPZIPUhvD5hUSd1pfRAZCNer5nRuASvQWm1aUf3NXY5st VV8A== 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=++j3EKFYagTjYpVDRmVtpilprtSSGPZNL/U6+y1BFYU=; b=FTP3IDIx3oREfk2RSFZTPuEk73JwevKPlEQHmJBl1tjbJsGrdOovO9K2TxAG23aufS SJkYttoB+5kWG0DeR7Nh++EV98V0+32A9oR9S6bYRayqsRXb0ZznZPZk60RuiXjBJB4X BMXDnjJFj+e0VZBvs1UTw5/AL/eUQ0eiuohVr5bi0I1lNn0puTiU93l2ThaEi//ORdaf StXQ54dQjewMXfoCkbtAUqcuwm4dzt2OuTrWJdpA1+qxZkg1Fs550WiljHVpj+ZgDRy/ m1o7mvC0fDOxxg9e2LF4OmFlevecUgM0pyJ2wtpr00v4wc+BRnuK4Mt4DjxKlRiVl21+ 9FMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PGVMrxoI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk18si16631857ejb.238.2021.10.17.03.07.12; Sun, 17 Oct 2021 03:07:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@chromium.org header.s=google header.b=PGVMrxoI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241778AbhJOQ4o (ORCPT + 99 others); Fri, 15 Oct 2021 12:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237549AbhJOQ4n (ORCPT ); Fri, 15 Oct 2021 12:56:43 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0856C061768 for ; Fri, 15 Oct 2021 09:54:36 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id g5so6774130plg.1 for ; Fri, 15 Oct 2021 09:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=++j3EKFYagTjYpVDRmVtpilprtSSGPZNL/U6+y1BFYU=; b=PGVMrxoIP54zTy3fYRiGwM3tLAZD1Sg5qwTZ/1sUpFUKPeoK4gaEUh4gDn9vmINL5R K6Diz6OFYGVqe3eH+J4BPfR7/r8fI1+hdPS73Dcjh+YNC+lZ5T7DwLWnu9B82X3frAPd N9HCX5/hrMJFRwzEMhEqi5qndMOp+CdKnJFuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=++j3EKFYagTjYpVDRmVtpilprtSSGPZNL/U6+y1BFYU=; b=YNaYDbbQYt1U1cdTaYS4FODjtyIMjGkDVZn9Bc7uB7MDFVcqFHuIZcSWZAyq7j1s4E 6j/sxUujRr64XyKdRumFibIC9McoG2zjj8VFD6YwZjV9gw1MI796kYwkCozPmFCDWb20 fENVansY/PlAt+BN1bhfp4G0RFzHnIj8yPBKFi75hHwbxDrgwu4JWaalk2oT/tKe/xx8 2gnt4YZwY7U0wLy9eMEWTBoSbzMsTuCHAbmQjhH0fgIp8O6QaVmbBMjDD2HbqJATlKry Lx5OD+XarSUawrYxCQKwxkCtCnopsZHM1lvxdEC1l+HJwtRvM33zotAdrUqcO3rfEc2g 1a/A== X-Gm-Message-State: AOAM532eqhkOlW/J12TzsuFi7w9TLoNZKrP4JbKZWFX1KuSj8pTOyg1T 5pY091m3/RpR56h97mfLudy5AA== X-Received: by 2002:a17:903:3092:b0:13f:663d:f008 with SMTP id u18-20020a170903309200b0013f663df008mr11973339plc.13.1634316876253; Fri, 15 Oct 2021 09:54:36 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t126sm5505715pfc.80.2021.10.15.09.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:54:35 -0700 (PDT) Date: Fri, 15 Oct 2021 09:54:35 -0700 From: Kees Cook 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 , 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-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 19/30] nilfs2: use bdev_nr_bytes instead of open coding it Message-ID: <202110150954.45A4DFA79@keescook> References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-20-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015132643.1621913-20-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Oct 15, 2021 at 03:26:32PM +0200, Christoph Hellwig wrote: > Use the proper helper to read the block device size. > > Signed-off-by: Christoph Hellwig Reviewed-by: Kees Cook -- Kees Cook