OSDN Git Service

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)
commit9011495c9466ca0aaee2741f98d50ac2ca8cee11
tree7484951c8acc5e5699dc06f65e73dd25b200b07c
parentfe4ec12e1865a2114056b799e4869bf4c30e47df
dcssblk: don't set bd_block_size in ->open

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