aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-05-01 14:40:27 +0200
committerKeith Busch <[email protected]>2023-06-12 10:36:47 -0700
commite64b0c807cdb7e1c8c6cd1a1b4e72027d1034d91 (patch)
tree625393058e7ed0c2f32812a2a90e9e1d04a3ab27 /drivers/fpga/fpga-bridge.c
parent9d217fb0e778d69b2e3988efbc441976c0fb29b5 (diff)
nvmet: reorder fields in 'struct nvmf_ctrl_options'
Group some variables based on their sizes to reduce holes. On x86_64, this shrinks the size of 'struct nvmf_ctrl_options' from 136 to 128 bytes. When such a structure is allocated in nvmf_create_ctrl(), because of the way memory allocation works, when 136 bytes were requested, 192 bytes were allocated. So this saves 64 bytes per allocation, 1 cache line to hold the whole structure and a few cycles when zeroing the memory in nvmf_create_ctrl(). Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions