Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp70026rdb; Thu, 25 Jan 2024 08:29:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEF+wpLaUeMKDQc5Yxu3pzOLIONd2HdVf8mrkVgWCGT9rJtYEK+lkqudQHK/0iXC3HGFlDv X-Received: by 2002:a17:906:e24a:b0:a30:e8c4:a3d6 with SMTP id gq10-20020a170906e24a00b00a30e8c4a3d6mr48275ejb.72.1706200195360; Thu, 25 Jan 2024 08:29:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706200195; cv=pass; d=google.com; s=arc-20160816; b=f2gM5fz5Ouk0tPZ+rvl4Hn9ST1RMZ7OAtue+tYsjISBmFeD6lrlz8VC/mD+0eKiqR1 8QdzaT27EUHK4S2AR+NlScgUAqTlmBU+RLhLwq+u61Ri2XFKiINKBpQxgvxUrvXD+LbI lz1SO2ic65+NSxfF3y/WJ3AH+Eslo+NfrG3QGDCeX9nAfsbQNQfhSRqf3iR4+/mYbM92 /4zEApg5vktcv7zsaLi8aa5EM8lCJqYDNnOtFwkqGzFWmeKPc2fi3UScRkyDbYNgYDCg 2N+GFLupi7AxL/ucPDlc8q3UhhvBtuUda8DaW16DB/CmyCw9/RuOksTW4MYyMqUU1CE6 5Mmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:to:from:subject:dkim-signature; bh=xK7Zd7mTSWWcQx+wMjiV7zJ8H0EAGg8IxlQegvmBNAo=; fh=Mys3y4MwsHRytUQMpdfGBn3oGRYLcLloxNwkFYMYMmg=; b=ORPpjyEUw4BdUJU9WY1StCck77ugqi3gS0GmAs+8NzmMzjAYZXWW6OCkz1cw61aN4A lnlxB3NBS/M1yhYpLIqVqGyztdGE/LLipHwxjpc+Gw6qnwo5ceO0KZySYZqBqO3MzV/f NXe8PmT8WYY73c+afvHd+Pespf+tt0YVX0i0FxBlbKAdi9u6HnmvOcgZ233aM8iVNcKL nr2wqkUtavNnA6li1CtiHzxu5YpECFODEeOPFaHztIrYexnJWrm1s6jeZ1UFkKnXxyn5 KHvxMimk+tbuJWwlK39CJYnVNtVdHGWqEGH11n8mYHUf2ft9Smp6g3efAYHDdvB58pm9 tNJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OWtj3MYb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y2-20020a17090629c200b00a3108dee756si1084276eje.150.2024.01.25.08.29.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:29:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OWtj3MYb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 23A6C1F279C7 for ; Thu, 25 Jan 2024 16:29:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61A67762A; Thu, 25 Jan 2024 16:29:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OWtj3MYb" X-Original-To: linux-nfs@vger.kernel.org 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 92809129A7F for ; Thu, 25 Jan 2024 16:29:38 +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=1706200178; cv=none; b=VSEEMLhjLn6PByN3KRq5s0EuSoBWIdVYQSFp0/y2oebZAzvhYp/8Op5CYCOANWaVW1JYBw2mO/5teElBP5sOUp7AbH3b2T1megMPanpIqC6IaVcUZx3ixFVih8+gl876gyYOdMQkgud2nfoNH0QOqMXsk9BNbGEBMDB3qC3ChfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706200178; c=relaxed/simple; bh=RnwNa/0CGb6w/Vo/tNyqewdpbgimrJQy3qMYF20ggjw=; h=Subject:From:To:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GnY7b1JllfkTDNl539Re7O/PvJdL/ctUJAEE3Y1+RiUX84vxy6ojUVpWdX9unkvc85SrJ6WJ7sUsPUJ5mHyPfuwz1Fo65DjQMR25QmaOzFp7uVWicLZyiw/gBm0nAjjTRneXMRbVHLOmRFbQYMwrEpua3CjwVQ4dwcKObpTSnKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OWtj3MYb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B528C433F1 for ; Thu, 25 Jan 2024 16:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706200178; bh=RnwNa/0CGb6w/Vo/tNyqewdpbgimrJQy3qMYF20ggjw=; h=Subject:From:To:Date:In-Reply-To:References:From; b=OWtj3MYbVI/NSwQAVvN9tuZtp8+IuW0VNOOT0m0S2fLmXmycMpBOQjJ0f9vivXO+S mIgZR2dYC7IhHHBX5O0U/UDmh1BFuNUj/lIT2qNCa1dgVaXOrR8KPFfsikfaVFRbIE KS1henXcSdFnV16LEpwyofdzX9OtN/v+Oe+a5SavGukIxnlRKAiNPHWWudbYZI9xtA WJvGia+aTZlcRYf9OqORjqySbJC4JD7/6dLuA901WtCwJwSwTTUbzxcbfB2887vVmZ oh65fZ1r9oEfuA1QJhutdDktqcxpCDu5QyJJ/btHSk7ULIMJrrMOgrqeI+f7NcfHk1 Ga1cHk93YR94Q== Subject: [PATCH RFC 09/13] NFSD: Remove unused @reason argument From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Thu, 25 Jan 2024 11:29:37 -0500 Message-ID: <170620017728.2833.11292919673014701709.stgit@manet.1015granger.net> In-Reply-To: <170619984210.2833.7173004255003914651.stgit@manet.1015granger.net> References: <170619984210.2833.7173004255003914651.stgit@manet.1015granger.net> User-Agent: StGit/1.5 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: Chuck Lever Signed-off-by: Chuck Lever --- fs/nfsd/nfs4callback.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 4d5a6370b92c..1e0f5a0bd804 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -45,7 +45,7 @@ #define NFSDDBG_FACILITY NFSDDBG_PROC -static void nfsd4_mark_cb_fault(struct nfs4_client *, int reason); +static void nfsd4_mark_cb_fault(struct nfs4_client *clp); #define NFSPROC4_CB_NULL 0 #define NFSPROC4_CB_COMPOUND 1 @@ -1004,14 +1004,14 @@ static void nfsd4_mark_cb_state(struct nfs4_client *clp, int newstate) } } -static void nfsd4_mark_cb_down(struct nfs4_client *clp, int reason) +static void nfsd4_mark_cb_down(struct nfs4_client *clp) { if (test_bit(NFSD4_CLIENT_CB_UPDATE, &clp->cl_flags)) return; nfsd4_mark_cb_state(clp, NFSD4_CB_DOWN); } -static void nfsd4_mark_cb_fault(struct nfs4_client *clp, int reason) +static void nfsd4_mark_cb_fault(struct nfs4_client *clp) { if (test_bit(NFSD4_CLIENT_CB_UPDATE, &clp->cl_flags)) return; @@ -1023,7 +1023,7 @@ static void nfsd4_cb_probe_done(struct rpc_task *task, void *calldata) struct nfs4_client *clp = container_of(calldata, struct nfs4_client, cl_cb_null); if (task->tk_status) - nfsd4_mark_cb_down(clp, task->tk_status); + nfsd4_mark_cb_down(clp); else nfsd4_mark_cb_state(clp, NFSD4_CB_UP); } @@ -1175,7 +1175,7 @@ static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback break; case -ESERVERFAULT: ++session->se_cb_seq_nr; - nfsd4_mark_cb_fault(cb->cb_clp, cb->cb_seq_status); + nfsd4_mark_cb_fault(cb->cb_clp); ret = false; break; case 1: @@ -1187,7 +1187,7 @@ static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback */ fallthrough; case -NFS4ERR_BADSESSION: - nfsd4_mark_cb_fault(cb->cb_clp, cb->cb_seq_status); + nfsd4_mark_cb_fault(cb->cb_clp); ret = false; goto need_restart; case -NFS4ERR_DELAY: @@ -1206,7 +1206,7 @@ static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback } break; default: - nfsd4_mark_cb_fault(cb->cb_clp, cb->cb_seq_status); + nfsd4_mark_cb_fault(cb->cb_clp); } nfsd41_cb_release_slot(cb); @@ -1252,7 +1252,7 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata) case -EIO: case -ETIMEDOUT: case -EACCES: - nfsd4_mark_cb_down(clp, task->tk_status); + nfsd4_mark_cb_down(clp); } break; default: @@ -1374,7 +1374,7 @@ static void nfsd4_process_cb_update(struct nfsd4_callback *cb) err = setup_callback_client(clp, &conn, ses); if (err) { - nfsd4_mark_cb_down(clp, err); + nfsd4_mark_cb_down(clp); if (c) svc_xprt_put(c->cn_xprt); return;