summaryrefslogtreecommitdiff
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-02-08 16:46:50 +0300
committerJens Axboe <axboe@fb.com>2017-02-08 23:43:10 +0300
commitb35ba01ea6979125e9c23fb322517748278f15e6 (patch)
tree41ad3c16c12d34660e135b6ffd6be7424d3ba305 /include/linux/nvme.h
parent1e739730c5b9ea80a2f25e9cf6e1025d47e3d8ed (diff)
downloadlinux-b35ba01ea6979125e9c23fb322517748278f15e6.tar.xz
nvme: support ranged discard requests
NVMe supports up to 256 ranges per DSM command, so wire up support for ranged discards up to that limit. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 3d1c6f1b15c9..3e2ed49c3ad8 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -553,6 +553,8 @@ enum {
NVME_DSMGMT_AD = 1 << 2,
};
+#define NVME_DSM_MAX_RANGES 256
+
struct nvme_dsm_range {
__le32 cattr;
__le32 nlb;