diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-26 10:01:55 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 08:08:17 -0600 |
commit | 6b7b181b67aa8177e57732723106a0411570a86d (patch) | |
tree | 652706d27ce5969d0d77798b9d6ec44698a3a02a /include/linux/blk_types.h | |
parent | block: simplify set_init_blocksize (diff) | |
download | linux-dev-6b7b181b67aa8177e57732723106a0411570a86d.tar.xz linux-dev-6b7b181b67aa8177e57732723106a0411570a86d.zip |
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>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index a602132cbe32..b01cd19bbe8a 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -33,7 +33,6 @@ struct block_device { struct list_head bd_holder_disks; #endif struct block_device * bd_contains; - unsigned bd_block_size; u8 bd_partno; struct hd_struct * bd_part; /* number of times partitions within this device have been opened. */ |