diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 12:41:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 20:50:42 +0300 |
commit | 0dbcfe247f22a6d73302dfa691c48b3c14d31c4c (patch) | |
tree | e0954dc2fc3a87f67214da4908f1384ab56a6e86 /include/linux/blk_types.h | |
parent | fbd9a39542ecdd2ade55869c13856b2590db3df8 (diff) | |
download | linux-0dbcfe247f22a6d73302dfa691c48b3c14d31c4c.tar.xz |
block: look up holders by bdev
Invert they way the holder relations are tracked. This very
slightly reduces the memory overhead for partitioned devices.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210804094147.459763-4-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 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 7a4e139d24ef..e92735655684 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -34,9 +34,6 @@ struct block_device { void * bd_holder; int bd_holders; bool bd_write_holder; -#ifdef CONFIG_BLOCK_HOLDER_DEPRECATED - struct list_head bd_holder_disks; -#endif struct kobject *bd_holder_dir; u8 bd_partno; spinlock_t bd_size_lock; /* for bd_inode->i_size updates */ |