Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1452385lqa; Mon, 29 Apr 2024 08:51:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsd3mhxS0ZZ0i9H7icA7PLiWsjcIXEZZ9y9OiKtmC/1zxQVoEo+98UGfDvAKkdOAneDWPlbHXwnhql9gCvGognU5jJ8/SOmqsTVfljDg== X-Google-Smtp-Source: AGHT+IEb/vYvhDArZd2s7WFYuZ1SpNfxoQVtK6302RUNKdW3gZMoatqIJ+XjSD4yqRMSGXhoWXoU X-Received: by 2002:a17:902:9a8f:b0:1e5:c06b:3330 with SMTP id w15-20020a1709029a8f00b001e5c06b3330mr11008163plp.24.1714405864345; Mon, 29 Apr 2024 08:51:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714405864; cv=pass; d=google.com; s=arc-20160816; b=HYvwPPRqna6lK709MBbb49tx5qdxPYmxHr9n6Gf4M9WpkVORzneWt8IQqLuu2KzwOm on6CGpZCTxNPKkK0HXTjnLaVcFLirh4cR0eM2lFq9MoDUzjvcdqH5OsRcURdBW9AWH7W PXYbF/md4m1HUstOXm5i1Z7NxzTCb8nN3qxvBREf6LS5qAlNfi++XyCaKZTOwPwtilHP kmJECnzfgSERcoJbbTVRzLmBaQNiLFDXWG+fbMuOpGZ+73cpDongB8WG39GZnpvI7S1Q k5u7YpSVpTMT53KEvo9u9tg5/6NJPfcXgOAuyRbbiXpeR6VqbKLTNu65XJP5PROG39or pe6A== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3NN2EqIuvS+dYfowGkf/ZpDCmSvuDo2WrV5ReGTr32A=; fh=enJLO2bjgtF62pspx5ljkzIyXGntjeeEElubrrV/VoA=; b=anKE+ECpbVK6dUmf2SMH9GBIgIl5nBq1s65SSEg8i4hEU96P+V8gfv7Mh2/xGepUIV 95ceH5vOYVtmWv9FZ0YxC9iJBqGTZRuNOTU0D7VOxcI3Pdu6DrphVO6NvtoKkqAZ0l/D 5hfzie2R8l7jOBrbVUVX6DlahRwDqiUqmdtpb6oc9hCFxdgDvQBp26X7JS1eFk8S3nuw uoPc3kh8f0gbKALha+kNXJ1C22aTq/RzIz9lRCV8TIUduv+dY0uqJexAH18f5RDettVk bYOlxiiAYi0bOkktNzuxuK2+JxxLP3AjEqUGEBT2IgYEzpkiCk0Ukz0xkm6r8vpJxTAN bGuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RI0Gh9yZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bd2-20020a170902830200b001e51f5c83ddsi19675817plb.371.2024.04.29.08.51.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RI0Gh9yZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3057-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5A8ADB2B8C5 for ; Mon, 29 Apr 2024 15:22:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ADCC85C6C; Mon, 29 Apr 2024 15:17:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RI0Gh9yZ" 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 762B285C69 for ; Mon, 29 Apr 2024 15:17:01 +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=1714403821; cv=none; b=UaZ86QgvkEeJ4bVwNaN2cy61NDiBHxtEBdy2hJzCbO9UIPzLO/klVQo3qqROxD+Ub4SkiC57conxCRdutxH3FyUE2QoUdVjVgm3pU6hh3+tfHRnsZ9dIu+QQqAyUBqO3yoeaBaNW1yzQaITd9CgGhLZDOnQlX0ZkjmRKvKeOxvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714403821; c=relaxed/simple; bh=1HFS83ETpO6ws36oisPwqHU+cyVmKzaTrI1qHJcfrsg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e5iMbqRp3ceVItiBI6cxw98cnL0rKhg0eHM1pEhMIV1svcWpZbzSk+8Y+3FN7fKXeejSoELsZrNMtMt+sdwzVGYn7hZA70CswB2HHRqsbqvKtC7n6EvaThtFkyLSARZ/GEPoDOKB31ZR7VyY7xD2ugwwOorelA9w+EwC3VDPEIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RI0Gh9yZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97D69C116B1; Mon, 29 Apr 2024 15:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714403821; bh=1HFS83ETpO6ws36oisPwqHU+cyVmKzaTrI1qHJcfrsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RI0Gh9yZUmxALRGLl2mMS3ow2gN7hidbMAlWb2pSPWRvR0e9fdsYv4U1VCzOwtws6 xWU6LYtKPSmNTSD7ewS8K1hg6REhuYUnmK84Pda1aqkAtveZfyPy4UyYvFomcfDt8N cXoOePRf8go3O0BtsdEHTEd1jAlqLOhnwQMpcNG8hENtMUGCMxp+cCuJc47hMHIefa rpVVOdugq5i5/ix4+0gXEcleyk1eqtfFea1rCHIsvakq8iBc3ZGGYn+stY1DDwIF/o fu777BrQb9ONjHb2ntAqStBRGNpPPvlQYXECvyuVx3zD/M+Cw8McWD+qDab7TiBm6j fz/A6oxVMSoBw== From: cel@kernel.org To: Olga Kornievskaia , Dai Ngo Cc: , Chuck Lever Subject: [RFC PATCH 3/4] NFS: Rename struct nfs4_offloadcancel_data Date: Mon, 29 Apr 2024 11:16:36 -0400 Message-ID: <20240429151632.212571-9-cel@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429151632.212571-6-cel@kernel.org> References: <20240429151632.212571-6-cel@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2754; i=chuck.lever@oracle.com; h=from:subject; bh=pRyWHX7qWM4SQ85D/LANlhFMuiT3HZ64dDk4FUEwRXw=; b=owEBbQKS/ZANAwAIATNqszNvZn+XAcsmYgBmL7nWMwLT+K8gBwsgkhjnR+LYwefnnz3358Rd3 3/ek+PBw1iJAjMEAAEIAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCZi+51gAKCRAzarMzb2Z/ l5WND/wMbNyyBJ+9ZUy+VuylNuIL36/Ql+ol3AvT1JSvRpcUqmJqoHqr3asw5k5EloIosaOwt86 Gk0i73UithYg3d2p2+ipP2p5RtEhiQk4kH4hWIa89WFc8674hys5ZxUsKFeGq6jJKmK5Hi95tE5 cXyHoxHM8vuu3zIcb3lUkn8/XlW+JPwnxTwIUTTiwdFQ/q5ZXbvPd4q4fCHoFAn+JWY9IXCRBt9 /Outhb97chodtlBflTkqqaaLwJGE0i4xUMFZ5KSa+V01N6pqpQIAauac3SXyS+gP711MvyYgfhN IYrWztF7m0ss++pLskKF6FOIDBC1IcH6TanIG7GrRB1RBsiQmdj3+GRRmk6eEbhgmqt01CMdbOL QTXVaHMnRlWrgq079O70J0sqo75+xZEbSALtIXnpzwnC9sbVE+kDFmCXnetV3gQGCCu3mrdkgLz 37fq3DcMxJE+MRIFn9WP2ADMmjQ12TnqACCe5eIMUZ5W+F3lkOTiuQC+XHC8Vw+X12lnBY3UP42 SfoCbHq58zuUHBoxkt3g3M43D9PKks485sBvgcqDwS4AaPXfs4teU0eUtsxOYZHKHSeXvyO+soO c95sfKT2d5/hQ0gv0XY3s9KaJdLQplwm43iVT+u3QXSXgAdXyphO7SOvco0erLP7upHaFm8CNS3 DFA5X8DBdMte7AQ== X-Developer-Key: i=chuck.lever@oracle.com; a=openpgp; fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97 Content-Transfer-Encoding: 8bit From: Chuck Lever Refactor: This struct can be used unchanged for OFFLOAD_STATUS, so give it a more generic name. Signed-off-by: Chuck Lever --- fs/nfs/nfs42proc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index 28704f924612..7656d7c103fa 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -498,7 +498,7 @@ ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src, return err; } -struct nfs42_offloadcancel_data { +struct nfs42_offload_data { struct nfs_server *seq_server; struct nfs42_offload_status_args args; struct nfs42_offload_status_res res; @@ -506,7 +506,7 @@ struct nfs42_offloadcancel_data { static void nfs42_offload_cancel_prepare(struct rpc_task *task, void *calldata) { - struct nfs42_offloadcancel_data *data = calldata; + struct nfs42_offload_data *data = calldata; nfs4_setup_sequence(data->seq_server->nfs_client, &data->args.osa_seq_args, @@ -515,7 +515,7 @@ static void nfs42_offload_cancel_prepare(struct rpc_task *task, void *calldata) static void nfs42_offload_cancel_done(struct rpc_task *task, void *calldata) { - struct nfs42_offloadcancel_data *data = calldata; + struct nfs42_offload_data *data = calldata; trace_nfs4_offload_cancel(&data->args, task->tk_status); nfs41_sequence_done(task, &data->res.osr_seq_res); @@ -525,7 +525,7 @@ static void nfs42_offload_cancel_done(struct rpc_task *task, void *calldata) rpc_restart_call_prepare(task); } -static void nfs42_free_offloadcancel_data(void *data) +static void nfs42_free_offload_data(void *data) { kfree(data); } @@ -533,14 +533,14 @@ static void nfs42_free_offloadcancel_data(void *data) static const struct rpc_call_ops nfs42_offload_cancel_ops = { .rpc_call_prepare = nfs42_offload_cancel_prepare, .rpc_call_done = nfs42_offload_cancel_done, - .rpc_release = nfs42_free_offloadcancel_data, + .rpc_release = nfs42_free_offload_data, }; static int nfs42_do_offload_cancel_async(struct file *dst, nfs4_stateid *stateid) { struct nfs_server *dst_server = NFS_SERVER(file_inode(dst)); - struct nfs42_offloadcancel_data *data = NULL; + struct nfs42_offload_data *data = NULL; struct nfs_open_context *ctx = nfs_file_open_context(dst); struct rpc_task *task; struct rpc_message msg = { @@ -559,7 +559,7 @@ static int nfs42_do_offload_cancel_async(struct file *dst, if (!(dst_server->caps & NFS_CAP_OFFLOAD_CANCEL)) return -EOPNOTSUPP; - data = kzalloc(sizeof(struct nfs42_offloadcancel_data), GFP_KERNEL); + data = kzalloc(sizeof(struct nfs42_offload_data), GFP_KERNEL); if (data == NULL) return -ENOMEM; -- 2.44.0