]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/lustre/libcfs: Get rid of /proc references in comments
authorOleg Drokin <green@linuxhacker.ru>
Tue, 16 Feb 2016 05:46:35 +0000 (00:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:33:11 +0000 (14:33 -0800)
Now that the sysfs conversion is complete, also convert all the
remaining comments

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c
drivers/staging/lustre/lustre/libcfs/module.c
drivers/staging/lustre/lustre/libcfs/tracefile.c

index 59c7bf3cbc1ff31e0480e1e5068d2822dcfadb4b..3358c3bf9b1964c10f12ca9c6a7dee61d19a1e77 100644 (file)
@@ -87,7 +87,7 @@ void libcfs_run_debug_log_upcall(char *file)
 
        rc = call_usermodehelper(argv[0], argv, envp, 1);
        if (rc < 0 && rc != -ENOENT) {
-               CERROR("Error %d invoking LNET debug log upcall %s %s; check /proc/sys/lnet/debug_log_upcall\n",
+               CERROR("Error %d invoking LNET debug log upcall %s %s; check /sys/kernel/debug/lnet/debug_log_upcall\n",
                       rc, argv[0], argv[1]);
        } else {
                CDEBUG(D_HA, "Invoked LNET debug log upcall %s %s\n",
@@ -113,7 +113,7 @@ void libcfs_run_upcall(char **argv)
 
        rc = call_usermodehelper(argv[0], argv, envp, 1);
        if (rc < 0 && rc != -ENOENT) {
-               CERROR("Error %d invoking LNET upcall %s %s%s%s%s%s%s%s%s; check /proc/sys/lnet/upcall\n",
+               CERROR("Error %d invoking LNET upcall %s %s%s%s%s%s%s%s%s; check /sys/kernel/debug/lnet/upcall\n",
                       rc, argv[0], argv[1],
                       argc < 3 ? "" : ",", argc < 3 ? "" : argv[2],
                       argc < 4 ? "" : ",", argc < 4 ? "" : argv[3],
index 611607ab92dbceaf68ec8b35187c39cd221c6994..45838b5fc8b1024f83fcf5bca26de9ec72d45b95 100644 (file)
@@ -368,10 +368,6 @@ static int proc_cpt_table(struct ctl_table *table, int write,
 }
 
 static struct ctl_table lnet_table[] = {
-       /*
-        * NB No .strategy entries have been provided since sysctl(8) prefers
-        * to go via /proc for portability.
-        */
        {
                .procname = "debug",
                .data     = &libcfs_debug,
index bc5d0eec70ebb5a996fb32c9775284fbd3913800..1dfbd2f58ff084213a4705b3ec582cd767533398 100644 (file)
@@ -771,9 +771,10 @@ EXPORT_SYMBOL(cfs_trace_copyin_string);
 int cfs_trace_copyout_string(char __user *usr_buffer, int usr_buffer_nob,
                             const char *knl_buffer, char *append)
 {
-       /* NB if 'append' != NULL, it's a single character to append to the
-        * copied out string - usually "\n", for /proc entries and "" (i.e. a
-        * terminating zero byte) for sysctl entries */
+       /*
+        * NB if 'append' != NULL, it's a single character to append to the
+        * copied out string - usually "\n" or "" (i.e. a terminating zero byte)
+        */
        int   nob = strlen(knl_buffer);
 
        if (nob > usr_buffer_nob)