Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1993506pxb; Sun, 17 Oct 2021 03:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDj3n3OWwUhNdnEosk87OA3a5GvuCCH+evZ9pn0GXYqpJ+JwD9b8joZX99hBEWkdsB7yLp X-Received: by 2002:a05:6402:350b:: with SMTP id b11mr35134599edd.341.1634465214702; Sun, 17 Oct 2021 03:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634465214; cv=none; d=google.com; s=arc-20160816; b=NCCtBBAzCzB7dSrotolqAgZoUb/h+Qcx5C4uigaST9paLABYuunezFxGkuJt2OAZqN XWqOCXVNTNZTcxeExFSkG+QOgk/Qt9kgxBv967E+pVJdun1u8tE8BTvobCXq3s8Vi5Ef j+c7Y2+xL+Gb+xb76WsEfNtUDs6IGq/AR8aLmBIGdrEtJD4MRoCV9g+IawEaSM/MMW/J 3qxih4cW6Um9tlLnTnWFM9NhHTx1dUe6EIsiXUGw7GxA3r5jlwE9paFpLMCpDqKm8PNu gkpKADvo8tF0JPnQX7oY+4RVQu8UdFDNuIwLVJcQnHNRZ2u02z5BRTzw4KvVQQQdB4bk rowQ== 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=i/gIfzDIY8BHp2GAnTGqbUaWifgLmmgJaZHOEikCPNE=; b=oNSVGh3Gnb2mUML/yRxlNxtrt5bXFA16u6qG6XgA9EVGOsKU8RO/pgKJZO4Y3kwf/S pHGvawIb5MAsbSaDkQuea9F5bkbd/S47zerUxRg43oh5OGD1dpfQZPwsomiZ3rgHEozF fxy3gpAtpEMyTcAzgnQw6xmg45Nf7Klu2lGG8bCWSYbVsAD1/0Fb9AK+KysHb3cAx9PB jIp3fqCEN3CnysqS/aDYYSF5Dj58rtvmbiTPXQghWRmT3J2yW4QYPusB9NhY36CgHKU8 YcLxc1q/PIVXbMJVmmVRwOKyNNXAXYaPG+LJwLFnZYThecrHjxH6tLHhzFecZ8LNvg/J 0sSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ijCBeqwj; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si16100797ejb.570.2021.10.17.03.06.18; Sun, 17 Oct 2021 03:06:54 -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=@chromium.org header.s=google header.b=ijCBeqwj; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241758AbhJOQ4K (ORCPT + 99 others); Fri, 15 Oct 2021 12:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241754AbhJOQ4D (ORCPT ); Fri, 15 Oct 2021 12:56:03 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C57C06176D for ; Fri, 15 Oct 2021 09:53:53 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id w14so6765333pll.2 for ; Fri, 15 Oct 2021 09:53:53 -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=i/gIfzDIY8BHp2GAnTGqbUaWifgLmmgJaZHOEikCPNE=; b=ijCBeqwjSX44JYJYQXxoOlzCMaUqE2c/FshvcWt5AOJ7Pdw2meC8GD81XASC91VnuZ nItwuK+FFfu4fuFDPeSQcXw9Uz1W4h2xhJCY/Ev6pPXPQ0ELlFXiago1MNdfKztmZVkX OUFTCDErJi6w26qIfF+omjAVxqFsWClXKietM= 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=i/gIfzDIY8BHp2GAnTGqbUaWifgLmmgJaZHOEikCPNE=; b=YtxzqBuJogq5QXRPtXWeU2R/7vEqdgJmWzv2+GTVTMMk7lkZIWF8Fp9/vbLCHVfQwQ cbKzCzpEB+XnYSvvpbUzZe+dO01ArT7QU8Wbxp9Y68zvcdeUEAXjIWzGK5oRgF8d8Yxb SlsRjl0UcmiAa+5Qv/tiAzxJ2OMCC9WuHT5aczZF0pPyL05NobY2IM5JERDRKBGzlkwh 0HE/R+2fSFuy/+pqrCSNKXQcSBa5Xi1S4CGYtUHLCqVy7h+E49uba8iLW+JkcVa5t7yc XKiz0f/MXkkmt8ugrTdpVwjJTA1yFCbxznPG4u7DIaQwv77LKHWqrXMxqQwHMYIe1X3v lW+g== X-Gm-Message-State: AOAM530v1zqhnxlnSwibZzofIjBNhEl/unDqLydhytuXJsAhU46ISONF HOL3AHWHm61uoJcuMW3UY7DtpQ== X-Received: by 2002:a17:902:eccf:b0:13e:b002:d8bd with SMTP id a15-20020a170902eccf00b0013eb002d8bdmr11944496plh.48.1634316833234; Fri, 15 Oct 2021 09:53:53 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j7sm5286487pfh.168.2021.10.15.09.53.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:53:52 -0700 (PDT) Date: Fri, 15 Oct 2021 09:53:52 -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, Dave Kleikamp Subject: Re: [PATCH 17/30] jfs: use bdev_nr_bytes instead of open coding it Message-ID: <202110150953.4C55C8948@keescook> References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-18-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015132643.1621913-18-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 15, 2021 at 03:26:30PM +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