nvme discard limits fix and tidy ups

Christoph Hellwig
2023-12-26T08:58:57Z

Hi all,

this series contains a fix that makes sure that the discard limits
are properly calculated based on the LBA size for each namespaces,
and also tidies up some code around that.

Diffstat:
core.c | 41 ++++++++++++++++++++---------------------
nvme.h | 3 +--
2 files changed, 21 insertions(+), 23 deletions(-)