diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 168f3ffb059f..b46597fc81e1 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -195,7 +195,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | |||
195 | 195 | ||
196 | static void renew_lease(const struct nfs_server *server, unsigned long timestamp) | 196 | static void renew_lease(const struct nfs_server *server, unsigned long timestamp) |
197 | { | 197 | { |
198 | struct nfs_client *clp = server->nfs4_state; | 198 | struct nfs_client *clp = server->nfs_client; |
199 | spin_lock(&clp->cl_lock); | 199 | spin_lock(&clp->cl_lock); |
200 | if (time_before(clp->cl_last_renewal,timestamp)) | 200 | if (time_before(clp->cl_last_renewal,timestamp)) |
201 | clp->cl_last_renewal = timestamp; | 201 | clp->cl_last_renewal = timestamp; |
@@ -252,7 +252,7 @@ static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry, | |||
252 | atomic_inc(&sp->so_count); | 252 | atomic_inc(&sp->so_count); |
253 | p->o_arg.fh = NFS_FH(dir); | 253 | p->o_arg.fh = NFS_FH(dir); |
254 | p->o_arg.open_flags = flags, | 254 | p->o_arg.open_flags = flags, |
255 | p->o_arg.clientid = server->nfs4_state->cl_clientid; | 255 | p->o_arg.clientid = server->nfs_client->cl_clientid; |
256 | p->o_arg.id = sp->so_id; | 256 | p->o_arg.id = sp->so_id; |
257 | p->o_arg.name = &dentry->d_name; | 257 | p->o_arg.name = &dentry->d_name; |
258 | p->o_arg.server = server; | 258 | p->o_arg.server = server; |
@@ -550,7 +550,7 @@ int nfs4_open_delegation_recall(struct dentry *dentry, struct nfs4_state *state) | |||
550 | case -NFS4ERR_STALE_STATEID: | 550 | case -NFS4ERR_STALE_STATEID: |
551 | case -NFS4ERR_EXPIRED: | 551 | case -NFS4ERR_EXPIRED: |
552 | /* Don't recall a delegation if it was lost */ | 552 | /* Don't recall a delegation if it was lost */ |
553 | nfs4_schedule_state_recovery(server->nfs4_state); | 553 | nfs4_schedule_state_recovery(server->nfs_client); |
554 | return err; | 554 | return err; |
555 | } | 555 | } |
556 | err = nfs4_handle_exception(server, err, &exception); | 556 | err = nfs4_handle_exception(server, err, &exception); |
@@ -792,7 +792,7 @@ out: | |||
792 | 792 | ||
793 | int nfs4_recover_expired_lease(struct nfs_server *server) | 793 | int nfs4_recover_expired_lease(struct nfs_server *server) |
794 | { | 794 | { |
795 | struct nfs_client *clp = server->nfs4_state; | 795 | struct nfs_client *clp = server->nfs_client; |
796 | 796 | ||
797 | if (test_and_clear_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) | 797 | if (test_and_clear_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) |
798 | nfs4_schedule_state_recovery(clp); | 798 | nfs4_schedule_state_recovery(clp); |
@@ -867,7 +867,7 @@ static int _nfs4_open_delegated(struct inode *inode, int flags, struct rpc_cred | |||
867 | { | 867 | { |
868 | struct nfs_delegation *delegation; | 868 | struct nfs_delegation *delegation; |
869 | struct nfs_server *server = NFS_SERVER(inode); | 869 | struct nfs_server *server = NFS_SERVER(inode); |
870 | struct nfs_client *clp = server->nfs4_state; | 870 | struct nfs_client *clp = server->nfs_client; |
871 | struct nfs_inode *nfsi = NFS_I(inode); | 871 | struct nfs_inode *nfsi = NFS_I(inode); |
872 | struct nfs4_state_owner *sp = NULL; | 872 | struct nfs4_state_owner *sp = NULL; |
873 | struct nfs4_state *state = NULL; | 873 | struct nfs4_state *state = NULL; |
@@ -953,7 +953,7 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, st | |||
953 | struct nfs4_state_owner *sp; | 953 | struct nfs4_state_owner *sp; |
954 | struct nfs4_state *state = NULL; | 954 | struct nfs4_state *state = NULL; |
955 | struct nfs_server *server = NFS_SERVER(dir); | 955 | struct nfs_server *server = NFS_SERVER(dir); |
956 | struct nfs_client *clp = server->nfs4_state; | 956 | struct nfs_client *clp = server->nfs_client; |
957 | struct nfs4_opendata *opendata; | 957 | struct nfs4_opendata *opendata; |
958 | int status; | 958 | int status; |
959 | 959 | ||
@@ -1133,7 +1133,7 @@ static void nfs4_close_done(struct rpc_task *task, void *data) | |||
1133 | break; | 1133 | break; |
1134 | case -NFS4ERR_STALE_STATEID: | 1134 | case -NFS4ERR_STALE_STATEID: |
1135 | case -NFS4ERR_EXPIRED: | 1135 | case -NFS4ERR_EXPIRED: |
1136 | nfs4_schedule_state_recovery(server->nfs4_state); | 1136 | nfs4_schedule_state_recovery(server->nfs_client); |
1137 | break; | 1137 | break; |
1138 | default: | 1138 | default: |
1139 | if (nfs4_async_handle_error(task, server) == -EAGAIN) { | 1139 | if (nfs4_async_handle_error(task, server) == -EAGAIN) { |
@@ -2791,7 +2791,7 @@ static int nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t buflen | |||
2791 | static int | 2791 | static int |
2792 | nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server) | 2792 | nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server) |
2793 | { | 2793 | { |
2794 | struct nfs_client *clp = server->nfs4_state; | 2794 | struct nfs_client *clp = server->nfs_client; |
2795 | 2795 | ||
2796 | if (!clp || task->tk_status >= 0) | 2796 | if (!clp || task->tk_status >= 0) |
2797 | return 0; | 2797 | return 0; |
@@ -2871,7 +2871,7 @@ static int nfs4_delay(struct rpc_clnt *clnt, long *timeout) | |||
2871 | */ | 2871 | */ |
2872 | int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct nfs4_exception *exception) | 2872 | int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct nfs4_exception *exception) |
2873 | { | 2873 | { |
2874 | struct nfs_client *clp = server->nfs4_state; | 2874 | struct nfs_client *clp = server->nfs_client; |
2875 | int ret = errorcode; | 2875 | int ret = errorcode; |
2876 | 2876 | ||
2877 | exception->retry = 0; | 2877 | exception->retry = 0; |
@@ -3077,7 +3077,7 @@ int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4 | |||
3077 | switch (err) { | 3077 | switch (err) { |
3078 | case -NFS4ERR_STALE_STATEID: | 3078 | case -NFS4ERR_STALE_STATEID: |
3079 | case -NFS4ERR_EXPIRED: | 3079 | case -NFS4ERR_EXPIRED: |
3080 | nfs4_schedule_state_recovery(server->nfs4_state); | 3080 | nfs4_schedule_state_recovery(server->nfs_client); |
3081 | case 0: | 3081 | case 0: |
3082 | return 0; | 3082 | return 0; |
3083 | } | 3083 | } |
@@ -3106,7 +3106,7 @@ static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock | |||
3106 | { | 3106 | { |
3107 | struct inode *inode = state->inode; | 3107 | struct inode *inode = state->inode; |
3108 | struct nfs_server *server = NFS_SERVER(inode); | 3108 | struct nfs_server *server = NFS_SERVER(inode); |
3109 | struct nfs_client *clp = server->nfs4_state; | 3109 | struct nfs_client *clp = server->nfs_client; |
3110 | struct nfs_lockt_args arg = { | 3110 | struct nfs_lockt_args arg = { |
3111 | .fh = NFS_FH(inode), | 3111 | .fh = NFS_FH(inode), |
3112 | .fl = request, | 3112 | .fl = request, |
@@ -3231,7 +3231,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data) | |||
3231 | break; | 3231 | break; |
3232 | case -NFS4ERR_STALE_STATEID: | 3232 | case -NFS4ERR_STALE_STATEID: |
3233 | case -NFS4ERR_EXPIRED: | 3233 | case -NFS4ERR_EXPIRED: |
3234 | nfs4_schedule_state_recovery(calldata->server->nfs4_state); | 3234 | nfs4_schedule_state_recovery(calldata->server->nfs_client); |
3235 | break; | 3235 | break; |
3236 | default: | 3236 | default: |
3237 | if (nfs4_async_handle_error(task, calldata->server) == -EAGAIN) { | 3237 | if (nfs4_async_handle_error(task, calldata->server) == -EAGAIN) { |
@@ -3343,7 +3343,7 @@ static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, | |||
3343 | if (p->arg.lock_seqid == NULL) | 3343 | if (p->arg.lock_seqid == NULL) |
3344 | goto out_free; | 3344 | goto out_free; |
3345 | p->arg.lock_stateid = &lsp->ls_stateid; | 3345 | p->arg.lock_stateid = &lsp->ls_stateid; |
3346 | p->arg.lock_owner.clientid = server->nfs4_state->cl_clientid; | 3346 | p->arg.lock_owner.clientid = server->nfs_client->cl_clientid; |
3347 | p->arg.lock_owner.id = lsp->ls_id; | 3347 | p->arg.lock_owner.id = lsp->ls_id; |
3348 | p->lsp = lsp; | 3348 | p->lsp = lsp; |
3349 | atomic_inc(&lsp->ls_count); | 3349 | atomic_inc(&lsp->ls_count); |