diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-04-14 07:30:16 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-16 13:01:35 -0600 |
commit | 3838c406a594f15600ad6f83c1e3b16bfd1829d0 (patch) | |
tree | c3fbb0bdfc6ea0316c1beb5d1836ceaf0f54cfce /block/blk-core.c | |
parent | 310e9c85c61a4393e772c9286947e259bb8c32a7 (diff) |
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>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions