Skip to content

Commit 942e21c

Browse files
mgurtovoykeithbusch
authored andcommitted
nvme: move sysfs code to a dedicated sysfs.c file
The core.c file became long and hard to maintain. Create a dedicated file to centralize the sysfs functionality. This is a common practice to separate sysfs/configfs related logic from the main driver logic .c file. For example, in the nvmet module the configfs interface has its own dedicated file. This patch does not include any functional changes. Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> [merged dhchap memleak fixes, include nvme-auth.h] Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent ae8bd60 commit 942e21c

4 files changed

Lines changed: 672 additions & 655 deletions

File tree

drivers/nvme/host/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ obj-$(CONFIG_NVME_FC) += nvme-fc.o
1010
obj-$(CONFIG_NVME_TCP) += nvme-tcp.o
1111
obj-$(CONFIG_NVME_APPLE) += nvme-apple.o
1212

13-
nvme-core-y += core.o ioctl.o
13+
nvme-core-y += core.o ioctl.o sysfs.o
1414
nvme-core-$(CONFIG_NVME_VERBOSE_ERRORS) += constants.o
1515
nvme-core-$(CONFIG_TRACING) += trace.o
1616
nvme-core-$(CONFIG_NVME_MULTIPATH) += multipath.o

0 commit comments

Comments
 (0)