]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme: introduce change ptpl and iekey definition
authorGuixin Liu <kanie@linux.alibaba.com>
Wed, 20 Nov 2024 07:10:07 +0000 (15:10 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 21 Nov 2024 16:57:41 +0000 (08:57 -0800)
This is for the next tuning pr code more readble patch, make
linux/nvme.h's changes separately.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
include/linux/nvme.h

index 2baf9a80b470a0ad5fa8c1a77dbb7bc609111249..13377dde4527b296dae0e00d3ea61f2be97bd5cb 100644 (file)
@@ -2171,4 +2171,13 @@ enum nvme_pr_release_action {
        NVME_PR_RELEASE_ACT_CLEAR               = 1,
 };
 
+enum nvme_pr_change_ptpl {
+       NVME_PR_CPTPL_NO_CHANGE                 = 0,
+       NVME_PR_CPTPL_RESV                      = 1 << 30,
+       NVME_PR_CPTPL_CLEARED                   = 2 << 30,
+       NVME_PR_CPTPL_PERSIST                   = 3 << 30,
+};
+
+#define NVME_PR_IGNORE_KEY (1 << 3)
+
 #endif /* _LINUX_NVME_H */