From patchwork Wed May 30 18:05:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trond Myklebust X-Patchwork-Id: 10439531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 58A02602CC for ; Wed, 30 May 2018 18:06:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45D06290F0 for ; Wed, 30 May 2018 18:06:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A4F8291B0; Wed, 30 May 2018 18:06:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C037F290F0 for ; Wed, 30 May 2018 18:06:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932113AbeE3SGb (ORCPT ); Wed, 30 May 2018 14:06:31 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:38509 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932090AbeE3SGZ (ORCPT ); Wed, 30 May 2018 14:06:25 -0400 Received: by mail-it0-f66.google.com with SMTP id q4-v6so24656438ite.3 for ; Wed, 30 May 2018 11:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=XIgFAgH5Pi3nV4RLUU8MhMkrebkK3BjFdVeyJzTgtlU=; b=npiKxSp/ZDDzc93jjSZhT+gTjOzLXXHgdtB4yubBOp1fFS/a1nTd3Ky8M2Pwy0HYZI 4XB9Zbnf1jUOLQhJlnDmkXgxEOZFRMqsAJcOoAuk9lrkXrlFRB1wKDD1Uo3fxTkSetmv l9M7p5AiMCsekQhtttnCjWC6Bm0T1rl7pP+aHrYr7fjPc89EirdkjjlF5s1OiH/j0/nM YJOx1YoSYWpHxeW5MKnNVuozL1U27L/8KLAm/wUcfmz++mTNgXocrxoppBw4I+KvbpkW iFeXgNTRErTa6hsbblZk0WvOW4WzMh8eRzTFEH2xYWG0DYY0bvg5QlYajQ92fWh7Z8Gl IrYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XIgFAgH5Pi3nV4RLUU8MhMkrebkK3BjFdVeyJzTgtlU=; b=MW6W+g3RPy72F4sntreErDBYn/CaRjIghCu89nnT+cYBtX1wPkSnYIRbqsgdSLPndC 95duKTYF/AAPR6yVxYnocLEE3bX7xxycTvjOBNL5qpJOQEB1aksbgd/hPzH1fZIbs+WV mZbDhYGGB4HrWhudfSBYfuNhkNi6a3xS30phHNP+Sirniwr1Z0Vhn/BSxfBSW2pS7Hz7 w8cLrezfQxGgmT2Q47FYSWUm02A4AiWlGbBJIry8pQX8vwMSEzVT0Xj7ys6KFB3UZi3A XoJ4T2tH7JHlf+i6i1BbNjCSFzkFKQIhRqADo1+susMCbXe1CUApcSpR31/v0GEXr4Em QO7w== X-Gm-Message-State: ALKqPwchKAW4w8qblqSdFVra4TfH7nep/L+vdZmSc8wQ/tfqRqQBvBRy YdcY2ZLf4XxCpf8sRATjT4a1dZg= X-Google-Smtp-Source: ADUXVKLvYhwpGRkBuuuPBsfcvwxTpUQ4JDDH6Sf/tDYcL30WFlTVTZVSIrpYB1EeckPCSbe2tKuObA== X-Received: by 2002:a24:2e8f:: with SMTP id i137-v6mr2646547ita.124.1527703584030; Wed, 30 May 2018 11:06:24 -0700 (PDT) Received: from leira.trondhjem.org.localdomain (c-68-49-162-121.hsd1.mi.comcast.net. [68.49.162.121]) by smtp.gmail.com with ESMTPSA id i201-v6sm8589368ite.33.2018.05.30.11.06.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 11:06:23 -0700 (PDT) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: linux-nfs@vger.kernel.org Subject: [PATCH 08/19] pnfs: Move nfs4_opendata into nfs4_fs.h Date: Wed, 30 May 2018 14:05:42 -0400 Message-Id: <20180530180553.38769-9-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180530180553.38769-8-trond.myklebust@hammerspace.com> References: <20180530180553.38769-1-trond.myklebust@hammerspace.com> <20180530180553.38769-2-trond.myklebust@hammerspace.com> <20180530180553.38769-3-trond.myklebust@hammerspace.com> <20180530180553.38769-4-trond.myklebust@hammerspace.com> <20180530180553.38769-5-trond.myklebust@hammerspace.com> <20180530180553.38769-6-trond.myklebust@hammerspace.com> <20180530180553.38769-7-trond.myklebust@hammerspace.com> <20180530180553.38769-8-trond.myklebust@hammerspace.com> MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fred Isaman It will be needed now by the pnfs code. Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust --- fs/nfs/nfs4_fs.h | 25 +++++++++++++++++++++++++ fs/nfs/nfs4proc.c | 25 ------------------------- fs/nfs/pnfs.c | 1 + 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 06a41aa2fdb2..137e18abb7e7 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h @@ -212,6 +212,31 @@ struct nfs4_state_recovery_ops { struct rpc_cred *); }; +struct nfs4_opendata { + struct kref kref; + struct nfs_openargs o_arg; + struct nfs_openres o_res; + struct nfs_open_confirmargs c_arg; + struct nfs_open_confirmres c_res; + struct nfs4_string owner_name; + struct nfs4_string group_name; + struct nfs4_label *a_label; + struct nfs_fattr f_attr; + struct nfs4_label *f_label; + struct dentry *dir; + struct dentry *dentry; + struct nfs4_state_owner *owner; + struct nfs4_state *state; + struct iattr attrs; + struct nfs4_layoutget *lgp; + unsigned long timestamp; + bool rpc_done; + bool file_created; + bool is_recover; + bool cancelled; + int rpc_status; +}; + struct nfs4_add_xprt_data { struct nfs_client *clp; struct rpc_cred *cred; diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 54f2987483fa..771439971759 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -1065,31 +1065,6 @@ static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo, spin_unlock(&dir->i_lock); } -struct nfs4_opendata { - struct kref kref; - struct nfs_openargs o_arg; - struct nfs_openres o_res; - struct nfs_open_confirmargs c_arg; - struct nfs_open_confirmres c_res; - struct nfs4_string owner_name; - struct nfs4_string group_name; - struct nfs4_label *a_label; - struct nfs_fattr f_attr; - struct nfs4_label *f_label; - struct dentry *dir; - struct dentry *dentry; - struct nfs4_state_owner *owner; - struct nfs4_state *state; - struct iattr attrs; - struct nfs4_layoutget *lgp; - unsigned long timestamp; - bool rpc_done; - bool file_created; - bool is_recover; - bool cancelled; - int rpc_status; -}; - struct nfs4_open_createattrs { struct nfs4_label *label; struct iattr *sattr; diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 363420d0f3a0..11148414b9b6 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -37,6 +37,7 @@ #include "nfs4trace.h" #include "delegation.h" #include "nfs42.h" +#include "nfs4_fs.h" #define NFSDBG_FACILITY NFSDBG_PNFS #define PNFS_LAYOUTGET_RETRY_TIMEOUT (120*HZ)