diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-09 16:51:52 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-30 13:14:50 -0500 |
commit | 6de7e12f53a154d35d9aceae718b764ada23e430 (patch) | |
tree | 9a540943b353c562a908f8450f861384674e7128 /fs/nfs/filelayout/filelayout.c | |
parent | 42e1cca7e91e1a7502694cfd18857ed243f54174 (diff) |
NFS: Use nfs4_setup_sequence() everywhere
This does the right thing depending on if we have a session, rather than
needing to handle this manually in multiple places.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/filelayout/filelayout.c')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index a3fc48ba4931..7aff350f15b1 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c | |||
@@ -305,7 +305,7 @@ static void filelayout_read_prepare(struct rpc_task *task, void *data) | |||
305 | } | 305 | } |
306 | hdr->pgio_done_cb = filelayout_read_done_cb; | 306 | hdr->pgio_done_cb = filelayout_read_done_cb; |
307 | 307 | ||
308 | if (nfs41_setup_sequence(hdr->ds_clp->cl_session, | 308 | if (nfs4_setup_sequence(hdr->ds_clp, |
309 | &hdr->args.seq_args, | 309 | &hdr->args.seq_args, |
310 | &hdr->res.seq_res, | 310 | &hdr->res.seq_res, |
311 | task)) | 311 | task)) |
@@ -403,7 +403,7 @@ static void filelayout_write_prepare(struct rpc_task *task, void *data) | |||
403 | rpc_exit(task, 0); | 403 | rpc_exit(task, 0); |
404 | return; | 404 | return; |
405 | } | 405 | } |
406 | if (nfs41_setup_sequence(hdr->ds_clp->cl_session, | 406 | if (nfs4_setup_sequence(hdr->ds_clp, |
407 | &hdr->args.seq_args, | 407 | &hdr->args.seq_args, |
408 | &hdr->res.seq_res, | 408 | &hdr->res.seq_res, |
409 | task)) | 409 | task)) |
@@ -438,7 +438,7 @@ static void filelayout_commit_prepare(struct rpc_task *task, void *data) | |||
438 | { | 438 | { |
439 | struct nfs_commit_data *wdata = data; | 439 | struct nfs_commit_data *wdata = data; |
440 | 440 | ||
441 | nfs41_setup_sequence(wdata->ds_clp->cl_session, | 441 | nfs4_setup_sequence(wdata->ds_clp, |
442 | &wdata->args.seq_args, | 442 | &wdata->args.seq_args, |
443 | &wdata->res.seq_res, | 443 | &wdata->res.seq_res, |
444 | task); | 444 | task); |