[PATCH] nvmet: nvmet.h configfs helper cleanup

Christoph Hellwig hch at lst.de
Sun Feb 11 22:59:19 PST 2024


On Sun, Feb 11, 2024 at 03:39:49PM -0800, Chaitanya Kulkarni wrote:
> Functions to_nvmet_ns(), to_ana_group(), to_subsys(), to_host() and
> namespaces_to_subsys() are only used in target/configfs.c, move it 
> to the appropriate file instead of bloating common header.

Does it matter?  I find having the helpers to do a container_of right
next to the structures they are used on pretty helpful.




More information about the Linux-nvme mailing list