Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3136368pxb; Tue, 12 Oct 2021 22:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJD/HOSgQtwqq2twYR+7G2qbj73mA1RPVoEdHrh8PHcxND6JRKQ7lOMfQDzmUk1+zNqHci X-Received: by 2002:a17:906:713:: with SMTP id y19mr39579090ejb.506.1634104295309; Tue, 12 Oct 2021 22:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634104295; cv=none; d=google.com; s=arc-20160816; b=dOPdQQpywmE4Wx5VwencsDYQepxWp9gQoajKiD1aSgLH5iNn80Wo3LIxWRXAu+/COP RVurp/9VPkLJ99p6Cu44VIL1AoZdE6I8kLjyBv8IKciZ+h8KJ7OaFPZ5BDTpuMdKIF9Q Mq2EeuKbCuoMNSJNvD1HZM8t2DFp6FM5/wA1GxILWrXYuK6NZGY0qHL4/npOjz6ofAOV KtEjOHkQgSoBCDs7efMgE082cVmuaCcLODGkEZnoa+5o3aqv1q08ylgs2R0qOCuPVDZy xImJSusBOwVUEQ5H34hh5PBl/y6BLReM/VsfH7JfUt/r/CjfVv0uRpxrSq94s0la4chL v3Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=o4h3siWCWbYazYK0Oyye0WCxhW+TPsSdCJyezg31K/s=; b=NnBN5ICrmtQVWsy5R6Qhs4ch5qb4g4TqhPvDFW0UvVPVhpUCpGaOC7M3jeewleuYRE VfLhF6e6nkJFfl6XWqv0jeJ3UmVxV61j6RwXzx826Qn5WQjrOEOZPviWwDerssCS0BDi 5Qlbr8jPiKLjmubrTOWlEmCOlGemByAVb2W4VFJgrXA4K7LBylb4YkXvLSlMKRJ5wV9V yFxH2Gs8GUccGN/GHru+aziFBHOSYhmm08kaIuUydungPM1q48bjqgwcZDcwSRgv094y rIjxOuBMnfywQpBc+Odbr4hdht3yCxGF3i+7DsIOqdjqPVB+qmdFkBDG2+n1o8yJU+ds thzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="h/xz+HqR"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si18547504eda.181.2021.10.12.22.51.12; Tue, 12 Oct 2021 22:51:35 -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=@infradead.org header.s=casper.20170209 header.b="h/xz+HqR"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbhJMFxH (ORCPT + 99 others); Wed, 13 Oct 2021 01:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhJMFxG (ORCPT ); Wed, 13 Oct 2021 01:53:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B58BC061570; Tue, 12 Oct 2021 22:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=o4h3siWCWbYazYK0Oyye0WCxhW+TPsSdCJyezg31K/s=; b=h/xz+HqR3T+2gdg8k2nNGkeFrh oBfn/pdJam7uwquPpri+uWckonTBJR+SPPwva6ojdH4VCTh9BjV8vKQKCGyPXU0dgqxxOBWFjziev PP0t0q4OWGrW7NaoepwV7XF78rE2jSee6S6dOoUwoWpD+2U/BptLWNNM8TnnqDuu3gnovgVWrwCPY NzqOyLaeLFL/gtHgcLPYk7oy122A48dL/MvYklpbYzsq1afBOR/LuKx8OP6d8BfPxgCzYKGpApyGA vkkxTaOCFuOQcwepWerxC/fBJk1clMLnCBsEwAZyLqtkz98WYOdIwjlim4YFIKx6YjNBxeikzaCtY u+K2EeIg==; Received: from 089144212063.atnat0021.highway.a1.net ([89.144.212.63] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1maX4E-0078XK-Np; Wed, 13 Oct 2021 05:45:57 +0000 From: Christoph Hellwig To: Jens Axboe Cc: 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: [PATCH 28/29] reiserfs: use sb_bdev_nr_blocks Date: Wed, 13 Oct 2021 07:10:41 +0200 Message-Id: <20211013051042.1065752-29-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211013051042.1065752-1-hch@lst.de> References: <20211013051042.1065752-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Use the sb_bdev_nr_blocks helper instead of open coding it. Signed-off-by: Christoph Hellwig --- fs/reiserfs/super.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 6c9681e2809f0..b12baadb7e9bb 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -1199,9 +1199,7 @@ static int reiserfs_parse_options(struct super_block *s, if (!strcmp(arg, "auto")) { /* From JFS code, to auto-get the size. */ - *blocks = - i_size_read(s->s_bdev->bd_inode) >> s-> - s_blocksize_bits; + *blocks = sb_bdev_nr_blocks(s); } else { *blocks = simple_strtoul(arg, &p, 0); if (*p != '\0') { -- 2.30.2