Skip to content

Commit b4c1f33

Browse files
Kanchan Joshikeithbusch
authored andcommitted
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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 73d148c commit b4c1f33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/nvme/host/nvme.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,19 +462,19 @@ struct nvme_ns_head {
462462
struct srcu_struct srcu;
463463
struct nvme_subsystem *subsys;
464464
struct nvme_ns_ids ids;
465+
u8 lba_shift;
466+
u16 ms;
467+
u16 pi_size;
468+
u8 pi_type;
469+
u8 guard_type;
465470
struct list_head entry;
466471
struct kref ref;
467472
bool shared;
468473
bool passthru_err_log_enabled;
469-
int instance;
470474
struct nvme_effects_log *effects;
471475
u64 nuse;
472476
unsigned ns_id;
473-
u8 lba_shift;
474-
u16 ms;
475-
u16 pi_size;
476-
u8 pi_type;
477-
u8 guard_type;
477+
int instance;
478478
#ifdef CONFIG_BLK_DEV_ZONED
479479
u64 zsze;
480480
#endif

0 commit comments

Comments
 (0)