block: re-arrange the struct block_device fields for better layout
authorJens Axboe <axboe@kernel.dk>
Fri, 14 Apr 2023 13:30:16 +0000 (07:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Apr 2023 19:01:35 +0000 (13:01 -0600)
commit3838c406a594f15600ad6f83c1e3b16bfd1829d0
treec3fbb0bdfc6ea0316c1beb5d1836ceaf0f54cfce
parent310e9c85c61a4393e772c9286947e259bb8c32a7
block: re-arrange the struct block_device fields for better layout

This moves struct device out-of-line as it's just used at open/close
time, so we can keep some of the commonly used fields closer together.
On a standard setup, it also reduces the size from 864 bytes to 848
bytes. Yes, struct device is a pig...

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk_types.h