]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvmet: use NVME_NS_FEAT_OPTPERF_SHIFT
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 27 Feb 2026 20:23:52 +0000 (13:23 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Mar 2026 14:35:04 +0000 (07:35 -0700)
commite0d56e7055d3762732504eddc059a4a142227e0f
tree410cd28eb5ae983de4a4ae04c3627ef538683f6d
parent1029298da36559866ecb5ddaa3d78deb02f2ab9b
nvmet: use NVME_NS_FEAT_OPTPERF_SHIFT

Use the NVME_NS_FEAT_OPTPERF_SHIFT constant in nvmet_bdev_set_limits()
to set the OPTPERF bits of the nvme_id_ns NSFEAT field instead of the
magic number 4.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/io-cmd-bdev.c