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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Max Gurtovoy <[email protected]> [merged dhchap memleak fixes, include nvme-auth.h] Signed-off-by: Keith Busch <[email protected]>
1 parent ae8bd60 commit 942e21c

File tree

4 files changed

+672
-655
lines changed

4 files changed

+672
-655
lines changed

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)