diff options
author | Tom Yan <tom.ty89@gmail.com> | 2022-04-29 12:52:43 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-05-16 08:06:54 +0200 |
commit | 1a86924e4f464757546d7f7bdc469be237918395 (patch) | |
tree | 25671ba61746627d769a990b2b606f84346a815f /drivers/nvme/host/nvme.h | |
parent | c23d47abee3a54e4991ed3993340596d04aabd6a (diff) | |
download | linux-1a86924e4f464757546d7f7bdc469be237918395.tar.bz2 |
nvme: fix interpretation of DMRSL
DMRSLl is in the unit of logical blocks, while max_discard_sectors is
in the unit of "linux sector".
Signed-off-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index a2b53ca63335..81c4f5379c0c 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -284,6 +284,7 @@ struct nvme_ctrl { #endif u16 crdt[3]; u16 oncs; + u32 dmrsl; u16 oacs; u16 sqsize; u32 max_namespaces; |