Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1645d503 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvmet: use NVME_NSID_ALL

parent dbf86b39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ static u16 nvmet_get_smart_log(struct nvmet_req *req,
	u16 status;

	WARN_ON(req == NULL || slog == NULL);
	if (req->cmd->get_log_page.nsid == cpu_to_le32(0xFFFFFFFF))
	if (req->cmd->get_log_page.nsid == cpu_to_le32(NVME_NSID_ALL))
		status = nvmet_get_smart_log_all(req, slog);
	else
		status = nvmet_get_smart_log_nsid(req, slog);
+1 −1
Original line number Diff line number Diff line
@@ -444,7 +444,7 @@ static struct config_group *nvmet_ns_make(struct config_group *group,
		goto out;

	ret = -EINVAL;
	if (nsid == 0 || nsid == 0xffffffff)
	if (nsid == 0 || nsid == NVME_NSID_ALL)
		goto out;

	ret = -ENOMEM;