diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2017-06-07 11:45:29 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-15 14:30:15 +0200 |
commit | 0add5e8e588c65c5ac6a3255f624260bf889128d (patch) | |
tree | 8acdd55b63571d59d07598e3e99dc9765de97922 /include/linux/nvme.h | |
parent | 0945e56994ac855d01c4aecf69bded65c751b894 (diff) | |
download | linux-0add5e8e588c65c5ac6a3255f624260bf889128d.tar.gz linux-0add5e8e588c65c5ac6a3255f624260bf889128d.tar.bz2 linux-0add5e8e588c65c5ac6a3255f624260bf889128d.zip |
nvmet: use NVME_IDENTIFY_DATA_SIZE
Use NVME_IDENTIFY_DATA_SIZE define instead of hard coding the magic
4096 value.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
[hch: converted three more users]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r-- | include/linux/nvme.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 706a0fbfe28e..782d557c5535 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -665,6 +665,8 @@ struct nvme_identify { __u32 rsvd11[5]; }; +#define NVME_IDENTIFY_DATA_SIZE 4096 + struct nvme_features { __u8 opcode; __u8 flags; |