]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove the bd_block_size field from struct block_device
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Jun 2020 08:01:55 +0000 (10:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 14:08:17 +0000 (08:08 -0600)
commitba0885c892c91265973a64f5d840a14e4b377c12
tree652706d27ce5969d0d77798b9d6ec44698a3a02a
parent313ba73adeac4cf4a2bcfbc5b49c23646a9a339a
block: remove the bd_block_size field from struct block_device

We can trivially calculate the block size from the inodes i_blkbits
variable.  Use that instead of keeping two redundant copies of the
information in slightly different formats.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c
include/linux/blk_types.h
include/linux/blkdev.h