]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use NVME_IDENTIFY_DATA_SIZE
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 7 Jun 2017 09:45:29 +0000 (11:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:30:15 +0000 (14:30 +0200)
commitb44d87861b3b7c79e592bd0d5f34d388c84480ad
tree8acdd55b63571d59d07598e3e99dc9765de97922
parentf690b46ef2f1f96a10e2a6d9d7ba5e05ff0db5ae
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>
drivers/nvme/host/lightnvm.c
drivers/nvme/host/pci.c
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/discovery.c
include/linux/nvme.h