]> git.dujemihanovic.xyz Git - linux.git/commitdiff
sunrpc: use the struct net as the svc proc private
authorJosef Bacik <josef@toxicpanda.com>
Fri, 26 Jan 2024 15:39:44 +0000 (10:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:09 +0000 (09:12 -0500)
nfsd is the only thing using this helper, and it doesn't use the private
currently.  When we switch to per-network namespace stats we will need
the struct net * in order to get to the nfsd_net.  Use the net as the
proc private so we can utilize this when we make the switch over.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/stats.c

index 65fc1297c6dfa4fcd96857a5a0753e78a6f5ebb8..383860cb1d5b0faf85728dd91ed9593b0e04b345 100644 (file)
@@ -314,7 +314,7 @@ EXPORT_SYMBOL_GPL(rpc_proc_unregister);
 struct proc_dir_entry *
 svc_proc_register(struct net *net, struct svc_stat *statp, const struct proc_ops *proc_ops)
 {
-       return do_register(net, statp->program->pg_name, statp, proc_ops);
+       return do_register(net, statp->program->pg_name, net, proc_ops);
 }
 EXPORT_SYMBOL_GPL(svc_proc_register);