dcssblk: don't set bd_block_size in ->open
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Jun 2020 08:01:53 +0000 (10:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 14:08:15 +0000 (08:08 -0600)
bd_block_size contains a value that matches the logic block size when
opening, so the statement is redundant.  Even if it wasn't the dumb
assignment would cause a a mismatch with bd_inode->i_blkbits.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dcssblk.c

index 35666c3..299e77e 100644 (file)
@@ -832,7 +832,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode)
                goto out;
        }
        atomic_inc(&dev_info->use_count);
-       bdev->bd_block_size = 4096;
        rc = 0;
 out:
        return rc;