netfs: Fix proc/fs/fscache symlink to point to "netfs" not "../netfs"
authorDavid Howells <dhowells@redhat.com>
Wed, 3 Jan 2024 21:08:11 +0000 (21:08 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Jan 2024 13:15:32 +0000 (13:15 +0000)
Fix the proc/fs/fscache symlink to point to "netfs" not "../netfs".

Reported-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: Christian Brauner <christian@brauner.io>
cc: linux-fsdevel@vger.kernel.org
cc: linux-cachefs@redhat.com

fs/netfs/fscache_proc.c

index ecd0d1edafaa45718a168b17877d80be2a4dc41f..874d951bc39012d487b87e27b641c3591cf51909 100644 (file)
@@ -16,7 +16,7 @@
  */
 int __init fscache_proc_init(void)
 {
-       if (!proc_symlink("fs/fscache", NULL, "../netfs"))
+       if (!proc_symlink("fs/fscache", NULL, "netfs"))
                goto error_sym;
 
        if (!proc_create_seq("fs/netfs/caches", S_IFREG | 0444, NULL,