mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
NFS: Change nfs4_get_session() to take an nfs_client structure
pNFS only has access to the nfs_client structure, and not the nfs_server, so we need to make this change so the function can be used by pNFS as well. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
efc6f4aa74
commit
172d9de15a
3 changed files with 9 additions and 10 deletions
|
@ -332,9 +332,8 @@ nfs42_layoutstat_prepare(struct rpc_task *task, void *calldata)
|
|||
}
|
||||
nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid);
|
||||
spin_unlock(&inode->i_lock);
|
||||
nfs41_setup_sequence(nfs4_get_session(server), &data->args.seq_args,
|
||||
&data->res.seq_res, task);
|
||||
|
||||
nfs41_setup_sequence(nfs4_get_session(server->nfs_client),
|
||||
&data->args.seq_args, &data->res.seq_res, task);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue