[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/27] ntfs3: use bdev_logical_block_size instead of open coding it
 
- To: Jens Axboe <axboe@xxxxxxxxx>
 
- From: Christoph Hellwig <hch@xxxxxx>
 
- Date: Sat,  9 Apr 2022 06:50:25 +0200
 
- Cc: dm-devel@xxxxxxxxxx,	linux-xfs@xxxxxxxxxxxxxxx,	linux-fsdevel@xxxxxxxxxxxxxxx,	linux-um@xxxxxxxxxxxxxxxxxxx,	linux-block@xxxxxxxxxxxxxxx,	drbd-dev@xxxxxxxxxxxxxxxx,	nbd@xxxxxxxxxxxxxxxx,	ceph-devel@xxxxxxxxxxxxxxx,	virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx,	xen-devel@xxxxxxxxxxxxxxxxxxxx,	linux-bcache@xxxxxxxxxxxxxxx,	linux-raid@xxxxxxxxxxxxxxx,	linux-mmc@xxxxxxxxxxxxxxx,	linux-mtd@xxxxxxxxxxxxxxxxxxx,	linux-nvme@xxxxxxxxxxxxxxxxxxx,	linux-s390@xxxxxxxxxxxxxxx,	linux-scsi@xxxxxxxxxxxxxxx,	target-devel@xxxxxxxxxxxxxxx,	linux-btrfs@xxxxxxxxxxxxxxx,	linux-ext4@xxxxxxxxxxxxxxx,	linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx,	cluster-devel@xxxxxxxxxx,	jfs-discussion@xxxxxxxxxxxxxxxxxxxxx,	linux-nilfs@xxxxxxxxxxxxxxx,	ntfs3@xxxxxxxxxxxxxxx,	ocfs2-devel@xxxxxxxxxxxxxx,	linux-mm@xxxxxxxxx,	Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
 
- Delivery-date: Sat, 09 Apr 2022 04:51:30 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
 
 
 
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
---
 fs/ntfs3/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 278dcf5024102..cd30e81abbce0 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -920,7 +920,7 @@ static int ntfs_fill_super(struct super_block *sb, struct 
fs_context *fc)
        }
 
        /* Parse boot. */
-       err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
+       err = ntfs_init_from_boot(sb, bdev_logical_block_size(bdev),
                                  bdev_nr_bytes(bdev));
        if (err)
                goto out;
-- 
2.30.2
 
    
     |