Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme: add preferred I/O size fields to struct nvme_id_ns_nvm

A subsequent change will use the NPDGL and NPDAL fields of the NVM
Command Set Specific Identify Namespace structure, so add them (and the
handful of intervening fields) to struct nvme_id_ns_nvm. Add an
assertion that the size is still 4 KB.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>

authored by

Caleb Sander Mateos and committed by
Keith Busch
ac61e869 ed6a9f7d

+8 -1
+8 -1
include/linux/nvme.h
··· 513 513 __u8 pic; 514 514 __u8 rsvd9[3]; 515 515 __le32 elbaf[64]; 516 - __u8 rsvd268[3828]; 516 + __le32 npdgl; 517 + __le32 nprg; 518 + __le32 npra; 519 + __le32 nors; 520 + __le32 npdal; 521 + __u8 rsvd288[3808]; 517 522 }; 523 + 524 + static_assert(sizeof(struct nvme_id_ns_nvm) == 4096); 518 525 519 526 enum { 520 527 NVME_ID_NS_NVM_STS_MASK = 0x7f,