Whamcloud - gitweb
LU-9859 libcfs: make lnet_debugfs_symlink_def local to libcfs/modules.c 32/44332/2
authorMr. NeilBrown <neilb@suse.de>
Fri, 16 Jul 2021 12:24:10 +0000 (08:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Jul 2021 21:38:28 +0000 (21:38 +0000)
This type is only used in libcfs/module.c, so make it local to there.
If any other module ever wanted to add its own symlinks,
it would probably be easiest to export lnet_debugfs_root
and just call debugfs_create_symlink as required.

Linux-commit: c4f907719736b720aa831447828809840e533371

Test-Parameters: trivial
Change-Id: I08221cfc781735451a292ba20cd35b9172fc20f2
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/44332
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/module.c

index cd781f6..862c404 100644 (file)
@@ -85,11 +85,6 @@ int libcfs_ioctl_data_adjust(struct libcfs_ioctl_data *data);
 
 extern struct workqueue_struct *cfs_rehash_wq;
 
-struct lnet_debugfs_symlink_def {
-       const char *name;
-       const char *target;
-};
-
 void lnet_insert_debugfs(struct ctl_table *table);
 void lnet_remove_debugfs(struct ctl_table *table);
 
index f966e61..0554cc9 100644 (file)
 #include <libcfs/crypto/llcrypt.h>
 #include "tracefile.h"
 
+struct lnet_debugfs_symlink_def {
+       const char *name;
+       const char *target;
+};
+
 static struct dentry *lnet_debugfs_root;
 
 BLOCKING_NOTIFIER_HEAD(libcfs_ioctl_list);