nvme: fix interpretation of DMRSL
authorTom Yan <tom.ty89@gmail.com>
Fri, 29 Apr 2022 04:52:43 +0000 (12:52 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 May 2022 06:06:54 +0000 (08:06 +0200)
commit1a86924e4f464757546d7f7bdc469be237918395
tree25671ba61746627d769a990b2b606f84346a815f
parentc23d47abee3a54e4991ed3993340596d04aabd6a
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h