[PATCH V3] nvme: introduce nvme_disk_is_ns_head helper

Christoph Hellwig hch at lst.de
Wed Dec 27 22:17:16 PST 2023


Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>

> +	if (nvme_disk_is_ns_head(disk))
>  		return disk->private_data;
> +	else
> +		return nvme_get_ns_from_dev(dev)->head;
>  }

Keith, maybe you can drop the superflous (pre-existing) else here when
applying.




More information about the Linux-nvme mailing list