]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:40 +0000 (09:48 +0200)
commit8d00da6502a07f9f8d7e6d4ae29d4338db056118
tree5c0a063905c5fe02e7a6124a2d9a58e5660fc3dc
parentf610c358956229b7e5180f8c1147725d989f6b0d
sunrpc: use the struct net as the svc proc private

commit 418b9687dece5bd763c09b5c27a801a7e3387be9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/stats.c