Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3160007pxb; Tue, 12 Oct 2021 23:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSxFX8c5U8OPH3AUt1B0dY9a12ks2O6g4Ds9kvRju6JPF0BcKpm2BrDHqcwckjS5lcuD5L X-Received: by 2002:a05:6402:50d0:: with SMTP id h16mr6734879edb.303.1634106712118; Tue, 12 Oct 2021 23:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634106712; cv=none; d=google.com; s=arc-20160816; b=N43z+6JvT1mhxg2KnB5WcQvXYcwzzJHBZ+rms3h0XPOhgqS4hnRzDiU9Qud0VcaW93 TL7DYxEg/upOWrcrsmAB+Oo4cCNQw14VLfBY13s9koQIxwMYE1VwlV0yKGlJ4uA859xm H9BeBprP4rWfT9gDxec2UOryzl9x0TuN8aF/isOzQtFritlnT2URLaeinIWO/1g/a1Ax of5wL+I6jRHv3TjYkLDMlO42tZ38GuWeKDoT6cyB2qow2sQ8tgjNkOJL9XOIoQDJkSNi xQqVuzVpqy3+RdRImtZxriDmto28O+zopDAqqAgfdioEvnmQMwoTiDDouvGgOcuhE5+P ZUSQ== 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=IqFCee932yXff3g8S22IMIonv/32fuT5szLU0pggDNY=; b=zsU5fxiw2RUtRYrEByIsDiKhLzBK12I5Ak/J47/jhL1bjvsMDEHomcx1b9Ld+mabf0 iIvVsX2F0NfL3msvkqrt/qM0CEsmYkU/7A0nHAEI/1qLZa8RnUMnAcst/Sh5+qC7EIWS SsdUgbsAG0OSht3n/pdO+oCBjqUJL2sn/obL11R9OgD872hZaJMYam2zXuvEoyXEM1Op cFfRLMBDl1OHvphM9Au4rNe/jgNwHTzFXAXVuERSe/6bokui0Hccber+WFtvqp1cj8Tq g5B+N8oVQ3UjLwije2LuJeTo2OW8quQTWyQOTvubq3RWNWxUcGU/o+8uj3gDpHLY+EBv Ej5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a1xXRGSh; 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 eg33si4283216edb.163.2021.10.12.23.31.28; Tue, 12 Oct 2021 23:31:52 -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=a1xXRGSh; 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 S237965AbhJMGdK (ORCPT + 99 others); Wed, 13 Oct 2021 02:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238007AbhJMGdI (ORCPT ); Wed, 13 Oct 2021 02:33:08 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D4D3C061765 for ; Tue, 12 Oct 2021 23:31:04 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id l6so1102168plh.9 for ; Tue, 12 Oct 2021 23:31:04 -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=IqFCee932yXff3g8S22IMIonv/32fuT5szLU0pggDNY=; b=a1xXRGShMNUcH1NESAktZXUgL3mFc7wQIYKmmv8/Y/ALepXHOWmmTvT8XSj6vOg/M+ MbhM/ene3FaZLDFtmRSFfGBcWZN2IWLJwqUk7lw7SQibDKaQXujif5Kg826b1uwy92rp BE9pd9q6ethHDDGyjRig6Cy//vFmfRqzEgWkA= 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=IqFCee932yXff3g8S22IMIonv/32fuT5szLU0pggDNY=; b=7VXLO1Cc8LdoQ+5caGHJDKPCebA3n+g/5U3Kpqq83C+tqpq7ndWqr5YbucXH/LU100 VxHdDAnUPewYm8c9cIbkqRJlNQCe09X0V/RhsvwO/IDDp0MmY7HELuEW314kuJ9TFI3N FR9Wb0R8w+sCwwEleS8G5PKzjIsbYWCRtWxpetwi0k7HVuB0tEIBx0ysQWel2u8+44OR ypt/uOyeiRIPvuBN8oArKnsm/YhQlLFbc+SGuKQ1vwJBrDArT5JE9oEmkuLLM/mak53c wZWtp40IZ+Yhkat1jwdeRXl9GFhtmj0JLviDVk1m3r7KbOTN03z8osIBo2rnxK69nJ5y mBxQ== X-Gm-Message-State: AOAM530xiBe2yklExi+2CXZ352w4bcMP2iFkBEQRjaPo+xikYaXheVzq DTAUu3LcoV1cK2G/EelM/m7adA== X-Received: by 2002:a17:902:f683:b0:13f:a79:52de with SMTP id l3-20020a170902f68300b0013f0a7952demr32121054plg.43.1634106664061; Tue, 12 Oct 2021 23:31:04 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k6sm13945349pfg.18.2021.10.12.23.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 23:31:03 -0700 (PDT) Date: Tue, 12 Oct 2021 23:31:03 -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-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 26/29] jfs: use sb_bdev_nr_blocks Message-ID: <202110122331.C020EA7@keescook> References: <20211013051042.1065752-1-hch@lst.de> <20211013051042.1065752-27-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013051042.1065752-27-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Oct 13, 2021 at 07:10:39AM +0200, Christoph Hellwig wrote: > Use the sb_bdev_nr_blocks helper instead of open coding it. > > Signed-off-by: Christoph Hellwig Reviewed-by: Kees Cook -- Kees Cook