nvme: reorganize nvme_ns_head fields
shuffle few fields to reduce the holes within nvme_ns_head. On x86_64, the size is reduced to 1104 bytes from 1120 bytes. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
73d148ccb9
commit
b4c1f33a5d
@ -462,19 +462,19 @@ struct nvme_ns_head {
|
|||||||
struct srcu_struct srcu;
|
struct srcu_struct srcu;
|
||||||
struct nvme_subsystem *subsys;
|
struct nvme_subsystem *subsys;
|
||||||
struct nvme_ns_ids ids;
|
struct nvme_ns_ids ids;
|
||||||
struct list_head entry;
|
|
||||||
struct kref ref;
|
|
||||||
bool shared;
|
|
||||||
bool passthru_err_log_enabled;
|
|
||||||
int instance;
|
|
||||||
struct nvme_effects_log *effects;
|
|
||||||
u64 nuse;
|
|
||||||
unsigned ns_id;
|
|
||||||
u8 lba_shift;
|
u8 lba_shift;
|
||||||
u16 ms;
|
u16 ms;
|
||||||
u16 pi_size;
|
u16 pi_size;
|
||||||
u8 pi_type;
|
u8 pi_type;
|
||||||
u8 guard_type;
|
u8 guard_type;
|
||||||
|
struct list_head entry;
|
||||||
|
struct kref ref;
|
||||||
|
bool shared;
|
||||||
|
bool passthru_err_log_enabled;
|
||||||
|
struct nvme_effects_log *effects;
|
||||||
|
u64 nuse;
|
||||||
|
unsigned ns_id;
|
||||||
|
int instance;
|
||||||
#ifdef CONFIG_BLK_DEV_ZONED
|
#ifdef CONFIG_BLK_DEV_ZONED
|
||||||
u64 zsze;
|
u64 zsze;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user