Searched hist:"9 d16d264775b9a10f3f5b5db768d7f51294b2a63" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/nvme/target/ |
H A D | nvmet.h | diff 9d16d264775b9a10f3f5b5db768d7f51294b2a63 Thu Apr 27 14:47:45 CDT 2023 Christophe JAILLET <christophe.jaillet@wanadoo.fr> nvmet: Reorder fields in 'struct nvmet_ns'
Group some variables based on their sizes to reduce holes. On x86_64, this shrinks the size of 'struct nvmet_ns' from 520 to 512 bytes.
When such a structure is allocated in nvmet_ns_alloc(), because of the way memory allocation works, when 520 bytes were requested, 1024 bytes were allocated.
So, on x86_64, this change saves 512 bytes per allocation.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Keith Busch <kbusch@kernel.org>
|