diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-05-04 22:22:48 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-31 21:02:16 +0200 |
commit | fb91fb0ee7b266ed0344515c048f57ac65cdb4b4 (patch) | |
tree | 658910cabf1cc7b865056840336aa36a3582b470 /fs/nfs/nfs3proc.c | |
parent | NFS: Avoid quadratic search when freeing delegations. (diff) | |
download | linux-fb91fb0ee7b266ed0344515c048f57ac65cdb4b4.tar.xz linux-fb91fb0ee7b266ed0344515c048f57ac65cdb4b4.zip |
NFS: Move call to nfs4_state_protect_write() to nfs4_write_setup()
This doesn't really need to be in the generic NFS client code, and I
think it makes more sense to keep the v4 code in one place.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r-- | fs/nfs/nfs3proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index eadf1ab31d16..3ffaff471592 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -823,7 +823,8 @@ static int nfs3_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr) } static void nfs3_proc_write_setup(struct nfs_pgio_header *hdr, - struct rpc_message *msg) + struct rpc_message *msg, + struct rpc_clnt **clnt) { msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE]; } |