From patchwork Thu Sep 5 15:30:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13792639 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52BB819FA87; Thu, 5 Sep 2024 15:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725550292; cv=none; b=TKnG4AcG1Loiyw6ILSZl4JxDev6Mfeezt6usxB3fNKI5rOfcUaekXhSlMEqLngA/wU4B7kNDOWFX/BXqsvgYIvxFt2h75TmWcnHDcTEyrzHqUWxdT6Us7VwE+Yzki8J9NmN/0AOm5fSQ+c5aT2sGVQ/FGPOGj0vqZ3dCSLgWnzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725550292; c=relaxed/simple; bh=WrQwpFQatNZRt9Lw1ZfVw6rnfWjAGsPvrE+IRIcYlHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G6CrFtzfxGzYheivXaiYW3CeY95h5RdZt+r+DjrMiwy/d59wsO5H0r6owPlMIzcbYqYPJQuRvU/HHwzS22jfp9Qj/ByyM32hxDs/CEZimFcQdEbCnFPjuHDDYbG1Ls1IY2XzX9aglBdTPp4qKQtiV26U4rMRCtVI7gxNCcrREGM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uH8k+0/g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uH8k+0/g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C12CC4CECA; Thu, 5 Sep 2024 15:31:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725550291; bh=WrQwpFQatNZRt9Lw1ZfVw6rnfWjAGsPvrE+IRIcYlHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uH8k+0/gndH0iVE1k5N7/yXN5Ary2THP26wir3EgxB9/J+KTz7pl6mfGj8g6ErjkP bIJLsr0VRhAYRCTpL4z7y+rMk4QbLKgq58oWryDiDBfJEsRHoyWlHQaDnDeudTjFn0 aWF/j/3k4lvMTQOElLgqTzJowW45sRXX46XAaMYFkj73UBHsvJBYo75w+HvivlcGMU K1ZsA4wNE1p9s9LYkl0qnzBvSykY8QEBL9xNj4E4YQhoprvnmI5LPI91rYvVdiFt/Q ffDgEXUUfevVEw0aSOYlawu235maNIrHlwjiIpz7XtXhZW4JZqcbc4JDAkVk7gVyex Qq13KD97YkSTw== From: cel@kernel.org To: Cc: , Petr Vorel , sherry.yang@oracle.com, calum.mackay@oracle.com, kernel-team@fb.com, Josef Bacik , Jeff Layton Subject: [PATCH 5.10.y 14/19] sunrpc: use the struct net as the svc proc private Date: Thu, 5 Sep 2024 11:30:56 -0400 Message-ID: <20240905153101.59927-15-cel@kernel.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240905153101.59927-1-cel@kernel.org> References: <20240905153101.59927-1-cel@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Josef Bacik [ Upstream commit 418b9687dece5bd763c09b5c27a801a7e3387be9 ] 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 Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- net/sunrpc/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index c964b48eaaba..a004c3ef35c0 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c @@ -309,7 +309,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);