nvme: fix the NVME_ID_NS_NVM_STS_MASK definition

[ Upstream commit b938e66036 ]

As per NVMe command set specification 1.0c Storage tag size is 7 bits.

Fixes: 4020aad85c ("nvme: add support for enhanced metadata")
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ankit Kumar 2023-06-23 18:08:05 +05:30 committed by Greg Kroah-Hartman
parent 66afb6a54e
commit 13a30e22ea
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ struct nvme_id_ns_nvm {
}; };
enum { enum {
NVME_ID_NS_NVM_STS_MASK = 0x3f, NVME_ID_NS_NVM_STS_MASK = 0x7f,
NVME_ID_NS_NVM_GUARD_SHIFT = 7, NVME_ID_NS_NVM_GUARD_SHIFT = 7,
NVME_ID_NS_NVM_GUARD_MASK = 0x3, NVME_ID_NS_NVM_GUARD_MASK = 0x3,
}; };