]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd53cc295ed8c8fa9dec219b983ef9449e08a907
tree7484951c8acc5e5699dc06f65e73dd25b200b07c
parent9466fb041a87e085e51d79030e0dd691b7194001
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