Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1993750pxb; Sun, 17 Oct 2021 03:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoC3B36bnrD3nIinJYs5hNmpWNrd/pHEY/tDl9JuoMLoLcPgBVI8Ow+h5JHQdiBcDG50De X-Received: by 2002:a17:907:9908:: with SMTP id ka8mr21550937ejc.164.1634465235266; Sun, 17 Oct 2021 03:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634465235; cv=none; d=google.com; s=arc-20160816; b=n0RoVz7VNMH1XuM2htkXXO3Ueuc5q22+/z7yOk4uOVKMJqxv6s3dn3jrFehQ/CdXWF IP2O2wimPG5W8WzWjUoThTkIdnIHoW1qa3TFZmT0vdPMd54sJtAODTN+Lcvmmjg6n3iM pZrbX2WkqxGP1wtM6+4e7TnSxx8aGxqT1lmIUdAVxHMP0xhPa9orP0tlsGQLXSK8MZ4V SAp9RiE1YjSnFmxNxbU0wlMcDj7ZBmAzcnJ91cCsswaWnQWuISwJCTVO4RvCyBQqoX0V Vwr3qKxXlhPlTSzpu8i3fw5c1AOSbvTJGwyNA5+arvCe7tO8YdhHYWDLpRkHAaHcyuyS IU4g== 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=+MbYp/9I6HwSPkAmORgtqKp7aAXKpROAHsI0KkahVSk=; b=cQkNB7ypJqke5XFGGTEbsYF6RLcUnt80J/ZRux7tJnkqIbMJwA1Gs2Jg0Gx+uI8z7+ 4mXMYky9HcvY4StdEJ6YUNWXRS991f0hpVtMqtLxdGwpe1J9zvQB1RrkMLlLT1G52qmQ ZWBWJkLXiPXOax9x3DCV+KUUQ70aa7tP3CjfU/1OPuGVQBZBAYIkSYo7PYoPcVLXW6vb 7bcPZlQ6Svqvs8eJC6/DxhV178GOnXvXTHLycPfUi2aW3/nHBe8E26b2JadU/Wo2gdKf SBiqWsnwbi1fs3T1DLQbFKlJEcsq23+uawn5dkow52iGBKCevkMcW/QMyu0PwhS75S/D D/zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ikEdVtNf; 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 gf2si16390016ejb.282.2021.10.17.03.06.52; Sun, 17 Oct 2021 03:07:15 -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=ikEdVtNf; 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 S241762AbhJOQ4O (ORCPT + 99 others); Fri, 15 Oct 2021 12:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241766AbhJOQ4I (ORCPT ); Fri, 15 Oct 2021 12:56:08 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A859C061764 for ; Fri, 15 Oct 2021 09:54:02 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id q5so9106070pgr.7 for ; Fri, 15 Oct 2021 09:54:02 -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=+MbYp/9I6HwSPkAmORgtqKp7aAXKpROAHsI0KkahVSk=; b=ikEdVtNf9eRQss1RELdYd+gQGtRkJJNUyxABmsyhavxmXS/GWW1GmjaIFqcZC+V7d0 jxPVuirO3PDa+xeNqLrVJO8s8KcCPrKVcuz5mnU+QJTWjswUytrClmIjf52ECv87VZwj IWYURypnyInULxZ6QO8cmc8sNxz7IQsLEMu78= 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=+MbYp/9I6HwSPkAmORgtqKp7aAXKpROAHsI0KkahVSk=; b=LTNRvljbTL4Lzvt4jxx37M0DdBzr1QAzHvCmgP2OQ4y3gNKAaL+2ccf6QWkvyiEy76 JeVsKm39wsL2LEqODzISq1ofp3uNfqLuQ/y1M/Eqa/0UtorYjboYWqxOz+Pwlq931g9L DAflYKyranJLCMUnHL8OpFlzdO+0MvJqg1nAmpOqirw21mAcnK9p/j7wqFtbfyei5Nwj o8/HEmry4+l7CJLitasFh32/vAEt+VOnDM1f2WenwMvF48ZG8olzD/9T3JWI8QhFJQrP Qj3dKaf38t8KNwFJTRH0dXNWlySqpkmhdtn4piyzgOx8EoC/eag9Pi4rHY1SgBdCVVyj YHUA== X-Gm-Message-State: AOAM530iPIbyBWSqf+E3MBO1jeiIJPUAIBC0PdvpuvGw1BN9XhwCHDRT kVsFcHHiO5Lfw3Vic6YhjRDIUQ== X-Received: by 2002:a63:7f0e:: with SMTP id a14mr3656783pgd.390.1634316842164; Fri, 15 Oct 2021 09:54:02 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b8sm5387267pfi.103.2021.10.15.09.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:54:01 -0700 (PDT) Date: Fri, 15 Oct 2021 09:54:01 -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 18/30] nfs/blocklayout: use bdev_nr_bytes instead of open coding it Message-ID: <202110150953.4A7CC49DC@keescook> References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-19-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015132643.1621913-19-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 15, 2021 at 03:26:31PM +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