Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp825824pxb; Fri, 15 Oct 2021 17:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRyAwFFYeJvai1DrhqzvJ7iF1KA1dyxuEaDbg2yZ6h9E29uDrMd077WltWTXEb3g6oGoWb X-Received: by 2002:a17:90a:b706:: with SMTP id l6mr31246168pjr.200.1634343873330; Fri, 15 Oct 2021 17:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634343873; cv=none; d=google.com; s=arc-20160816; b=C1zFN6/c5hkGvpX+hDF6lq9GWPbL1UWoikxfEK9vnHp1saJf3tX04guVomcMacLP92 jlnU3sk9hY8+/81O6SCg+fJDs+INxS1J4jwZARRdx98XABBVSsBxK/xeff26MgSYo/Le /FHq0mWoNI4A31D+UCKD5PrI3xoktQQN1aWKjdcM4WtZFi1M2UMKyKu11qI2YW+STwql a0ODRDI9Olj9l5pzQdkZfosOnhixkv7Js6k2da0Sh/BGkfCAStAeBMrTs7dKwbfSq9RG r5L24ZKr6aMK6nZHjs5m7I37HGJ4nVuv3Sg3+QSyeVe2zDsBKxTVyw71dugMMtfduDFv xSLQ== 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=7vy0+8EI8WhVCxcCPpT3E3xZPAv/h7863mIj0HITKC4=; b=n6AN3BzEAb44iMrOafP2kdIrn9rglfNWuAbSd7wnj1VSBQ8TaZtAsrfxJNKJLd2Hyi YdjQwjoJPizte2M5jjVBFspGBUjzQPqiT7/zhrTRf3dn5dHqXrR4nYURVUaDt0w3JmW1 o5vz3GracwYU8MGNZ87aUi+VF507bm0G3ZbmDl38a5JdA6qYU5DKkLjbwdeyoAdbKoSp BI4lIoropp7zydr0S6da/XTEOXcTip2s19ToFiI9dSdKTqd5uGk6BnfYnrdbGULtJdSQ aLqBuh0eWzk3gfzJyCPCTRxCp32JLAH7V4Y2ti2HoW5BzEzkbCRnVALnxGusQ6BglZJK cSww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xmxZRfmu; 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 q3si895109pgm.256.2021.10.15.17.24.20; Fri, 15 Oct 2021 17:24:33 -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=bombadil.20210309 header.b=xmxZRfmu; 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 S239476AbhJONb5 (ORCPT + 99 others); Fri, 15 Oct 2021 09:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239692AbhJONav (ORCPT ); Fri, 15 Oct 2021 09:30:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD3ECC06177E; Fri, 15 Oct 2021 06:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=7vy0+8EI8WhVCxcCPpT3E3xZPAv/h7863mIj0HITKC4=; b=xmxZRfmuHz0VqdbUt2oT7Bevb7 o4CxF77k0oZ/rzw6OpdJBPS9aNjql5VKLH61Ct4+Yt2AwCG9Jx1/flLXuMKMifBBrYJEUsR3a3fWo B7GgHgzInH6ck+PsWqLyxhKxpsoA7oJm+IkApWIK+2n/B11ik1ZAwOeWyZ+W7My6FzsNx6yCXjDsq WokCivh+P43Uf5GvNl5Jx72fqF06MBW34ChI9M77fHda72O4TYZYenz2y3vZhHHuSCndcxv7KTqfF UOGDQMh4qkLEPZM/+G2Q0iCwlTWD8HrZ5I7oxXkmeQNSJGjTZWeE6ViTYA/CkqLpdtpO7s3ysge5I Nmi3hQXA==; Received: from [2001:4bb8:199:73c5:ddfe:9587:819b:83b0] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbNFJ-007DRi-Uj; Fri, 15 Oct 2021 13:27:38 +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-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 20/30] ntfs3: use bdev_nr_bytes instead of open coding it Date: Fri, 15 Oct 2021 15:26:33 +0200 Message-Id: <20211015132643.1621913-21-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211015132643.1621913-1-hch@lst.de> References: <20211015132643.1621913-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Use the proper helper to read the block device size. Signed-off-by: Christoph Hellwig --- fs/ntfs3/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 55bbc9200a10e..7ed2cb5e8b1d9 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -918,7 +918,6 @@ static int ntfs_fill_super(struct super_block *sb, void *data, int silent) int err; struct ntfs_sb_info *sbi; struct block_device *bdev = sb->s_bdev; - struct inode *bd_inode = bdev->bd_inode; struct request_queue *rq = bdev_get_queue(bdev); struct inode *inode = NULL; struct ntfs_inode *ni; @@ -967,7 +966,7 @@ static int ntfs_fill_super(struct super_block *sb, void *data, int silent) /* Parse boot. */ err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512, - bd_inode->i_size); + bdev_nr_bytes(bdev)); if (err) goto out; -- 2.30.2