Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2612488pxb; Sun, 17 Oct 2021 20:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl9YGKEvDdGMlIp0PZRfVVeTGZHFSA6n1r31xg99bOz9xLHvVdktTSFkRAafSwnHA/DOQS X-Received: by 2002:a63:3c4c:: with SMTP id i12mr5412983pgn.447.1634527786774; Sun, 17 Oct 2021 20:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527786; cv=none; d=google.com; s=arc-20160816; b=LgSXFlQX3Su22VzmlgyEKfFySrC/fqPCHhmsU/TthGLLsQ41Im7qDKBLDj1XXJJ5ti 1sJy6nl1M3BBWnw4kfZviGmV56kq9b1rAcBgHEeMhZVlzpqYidEzejKLxCvi7n5zwsIJ nP63u76AleuzyGNWZt3Z5w1MVj0Z9Xs1/Zkm2c7owpQZylB/xxfWF7gcLh8zz2q6YJtT qq1H1EziI4laKi27U5bqzHBWMa0UDrxEQDmG58flHMlRzubk+cFt7XR/PIsiMseq0V2f HW1wMtOptEAUBCcVsRJvdQMhRIAUYMXB3MFUA+MJdaPi6uDJS+yBR76g1MFz8weBGbmK MxEg== 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=yeYbTALLt+81wu8WFfyKx0a33Kod/SnDLZRAl1Frm5U=; b=MQuBWtOVQABCLaSiWNHTiqAVdbK6Z0mYvI3A6VPfRJL0BWEnUt3xGk7MiCgEzCqwcI 6jqvBZxhPV5Q8XIxpSYKbCgePkJ6gfbVF7xIuPka5ymnzlk4SjnlF/MJj2d54Qup6hZ7 ERBBFdYyTyi7i1yi/7MiaSFfYzJhDpMIdNH+FP5Gn4qnxq/crXBQSZajv4238afhsfZG 7CaR6yfdPlbA9eBLY/8MHeiQU2VPRTj7/YFk2VLzxCC3aUQ6u+oSZNwZvI/Wzzq4mN+9 xguuaZaZwCti6/TyLlXmPT567v7LGYroe+tQ0uMP0Pwdf30OlPmW1NZIuXR70bhossJR hTJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cVnZ6+l+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si367512plq.364.2021.10.17.20.29.02; Sun, 17 Oct 2021 20:29:46 -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=@gmail.com header.s=20210112 header.b=cVnZ6+l+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243804AbhJPHmV (ORCPT + 99 others); Sat, 16 Oct 2021 03:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243801AbhJPHmU (ORCPT ); Sat, 16 Oct 2021 03:42:20 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B080CC061765; Sat, 16 Oct 2021 00:40:12 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id n8so51503793lfk.6; Sat, 16 Oct 2021 00:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yeYbTALLt+81wu8WFfyKx0a33Kod/SnDLZRAl1Frm5U=; b=cVnZ6+l+2XB64KtPGPsew2EuurYnsOpcBevvm/IVGVDWp/Lr378D4lUZAb7Ldqn1aU Nechfd+nevnKJt8FFrjsUkhQRsZN4OdAe+y/4UgENJDxkcBm3bvvsqVp0+i7kz/ncskC VTNCGAMRL2zXauGox8hUYH0e6cLX9YNzHMmZx68OgeqDdd/IPTSNwVgM/hhe43XfbD/A Rsr2ngeAq8MwLS8wYqIQpA7q0jGrbmoIHsnPPXNshCS3yofpN7y1D6hLbuTi/3aHu8Hg WHPyyYAgwzwuGQtuqb861mn1fmCGJ4Gxolg4kHeKn8eV14e/nwAYLFHNCnrx2jzkQiPm sdiw== 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=yeYbTALLt+81wu8WFfyKx0a33Kod/SnDLZRAl1Frm5U=; b=1huJ5oysI05xJ1aHtwvlAGyBBPx/KuQAWKBT2mbRy2s/c41Q02EyXPqdoYas7YhLiw aZbl36IYg9/w54HDTlWv4uwV92L/19zz/n+atRnkd5JmwAh2kzomA4aCed4ye4XkwNfx WSvvvAgkB150U5+i7Eleh8RUEYD9u6cQzCrK4rStxxrWjDru8KdQqpcNhWPGLiUUTwg+ wFdr2niwD0jSxq5jXhK6t+Vyn/l4eCZUNNNBvs0UsPCami3Ng9vjevcxUAMLmUYIxA3I zf7WZo/4dERpFEWwK9wv8SsuuczE/In0WD4P7RWskmZW1k6qwQKdX2O4YuO2x5Jzxjn8 gCMQ== X-Gm-Message-State: AOAM532mdIbON8UzZvjWjFYsfzqBlgByhpATVexRGrMZcPUC8hVnqM5c KdHF7iq0yktmgbV/ThcmIrV6DO5XAhPEQA== X-Received: by 2002:a05:6512:3190:: with SMTP id i16mr9019031lfe.224.1634370011048; Sat, 16 Oct 2021 00:40:11 -0700 (PDT) Received: from kari-VirtualBox (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id a19sm827633ljb.3.2021.10.16.00.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 00:40:10 -0700 (PDT) Date: Sat, 16 Oct 2021 10:40:08 +0300 From: Kari Argillander 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 , 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: Re: [PATCH 20/30] ntfs3: use bdev_nr_bytes instead of open coding it Message-ID: <20211016074008.o6wl7uy3vsrz4v3b@kari-VirtualBox> References: <20211015132643.1621913-1-hch@lst.de> <20211015132643.1621913-21-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015132643.1621913-21-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 15, 2021 at 03:26:33PM +0200, Christoph Hellwig wrote: > 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; Linus merged latest ntfs3 stuff and this temp variable is not anymore in upstream. So this patch will conflict. Just so that you know. > 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 > >