From: Christophe JAILLET Date: Mon, 1 May 2023 12:40:25 +0000 (+0200) Subject: nvmet: reorder fields in 'struct nvmet_sq' X-Git-Tag: v6.6.7~2487^2~33^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c60651e32f1e886cd85fd9f591ad2d8706173605;p=platform%2Fkernel%2Flinux-starfive.git nvmet: reorder fields in 'struct nvmet_sq' Group some variables based on their sizes to reduce holes. On x86_64, this shrinks the size of 'struct nvmet_sq' from 472 to 464 bytes when CONFIG_NVME_TARGET_AUTH is defined. This structure is embedded into some other structures, so it helps reducing their sizes as well. Signed-off-by: Christophe JAILLET Reviewed-by: Sagi Grimberg Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index dc60a22..6cf723b 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -109,8 +109,8 @@ struct nvmet_sq { u32 sqhd; bool sqhd_disabled; #ifdef CONFIG_NVME_TARGET_AUTH - struct delayed_work auth_expired_work; bool authenticated; + struct delayed_work auth_expired_work; u16 dhchap_tid; u16 dhchap_status; int dhchap_step;