diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index f0a994e3b2c5..db701c47a342 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2242,8 +2242,7 @@ check_replay: | |||
2242 | 2242 | ||
2243 | __be32 | 2243 | __be32 |
2244 | nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 2244 | nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
2245 | struct nfsd4_open_confirm *oc, | 2245 | struct nfsd4_open_confirm *oc) |
2246 | struct nfs4_stateowner **replay_owner) | ||
2247 | { | 2246 | { |
2248 | __be32 status; | 2247 | __be32 status; |
2249 | struct nfs4_stateowner *sop; | 2248 | struct nfs4_stateowner *sop; |
@@ -2280,7 +2279,7 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
2280 | out: | 2279 | out: |
2281 | if (oc->oc_stateowner) { | 2280 | if (oc->oc_stateowner) { |
2282 | nfs4_get_stateowner(oc->oc_stateowner); | 2281 | nfs4_get_stateowner(oc->oc_stateowner); |
2283 | *replay_owner = oc->oc_stateowner; | 2282 | cstate->replay_owner = oc->oc_stateowner; |
2284 | } | 2283 | } |
2285 | nfs4_unlock_state(); | 2284 | nfs4_unlock_state(); |
2286 | return status; | 2285 | return status; |
@@ -2314,8 +2313,7 @@ reset_union_bmap_deny(unsigned long deny, unsigned long *bmap) | |||
2314 | __be32 | 2313 | __be32 |
2315 | nfsd4_open_downgrade(struct svc_rqst *rqstp, | 2314 | nfsd4_open_downgrade(struct svc_rqst *rqstp, |
2316 | struct nfsd4_compound_state *cstate, | 2315 | struct nfsd4_compound_state *cstate, |
2317 | struct nfsd4_open_downgrade *od, | 2316 | struct nfsd4_open_downgrade *od) |
2318 | struct nfs4_stateowner **replay_owner) | ||
2319 | { | 2317 | { |
2320 | __be32 status; | 2318 | __be32 status; |
2321 | struct nfs4_stateid *stp; | 2319 | struct nfs4_stateid *stp; |
@@ -2361,7 +2359,7 @@ nfsd4_open_downgrade(struct svc_rqst *rqstp, | |||
2361 | out: | 2359 | out: |
2362 | if (od->od_stateowner) { | 2360 | if (od->od_stateowner) { |
2363 | nfs4_get_stateowner(od->od_stateowner); | 2361 | nfs4_get_stateowner(od->od_stateowner); |
2364 | *replay_owner = od->od_stateowner; | 2362 | cstate->replay_owner = od->od_stateowner; |
2365 | } | 2363 | } |
2366 | nfs4_unlock_state(); | 2364 | nfs4_unlock_state(); |
2367 | return status; | 2365 | return status; |
@@ -2372,7 +2370,7 @@ out: | |||
2372 | */ | 2370 | */ |
2373 | __be32 | 2371 | __be32 |
2374 | nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 2372 | nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
2375 | struct nfsd4_close *close, struct nfs4_stateowner **replay_owner) | 2373 | struct nfsd4_close *close) |
2376 | { | 2374 | { |
2377 | __be32 status; | 2375 | __be32 status; |
2378 | struct nfs4_stateid *stp; | 2376 | struct nfs4_stateid *stp; |
@@ -2405,7 +2403,7 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
2405 | out: | 2403 | out: |
2406 | if (close->cl_stateowner) { | 2404 | if (close->cl_stateowner) { |
2407 | nfs4_get_stateowner(close->cl_stateowner); | 2405 | nfs4_get_stateowner(close->cl_stateowner); |
2408 | *replay_owner = close->cl_stateowner; | 2406 | cstate->replay_owner = close->cl_stateowner; |
2409 | } | 2407 | } |
2410 | nfs4_unlock_state(); | 2408 | nfs4_unlock_state(); |
2411 | return status; | 2409 | return status; |
@@ -2646,7 +2644,7 @@ check_lock_length(u64 offset, u64 length) | |||
2646 | */ | 2644 | */ |
2647 | __be32 | 2645 | __be32 |
2648 | nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 2646 | nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
2649 | struct nfsd4_lock *lock, struct nfs4_stateowner **replay_owner) | 2647 | struct nfsd4_lock *lock) |
2650 | { | 2648 | { |
2651 | struct nfs4_stateowner *open_sop = NULL; | 2649 | struct nfs4_stateowner *open_sop = NULL; |
2652 | struct nfs4_stateowner *lock_sop = NULL; | 2650 | struct nfs4_stateowner *lock_sop = NULL; |
@@ -2796,7 +2794,7 @@ out: | |||
2796 | release_stateowner(lock_sop); | 2794 | release_stateowner(lock_sop); |
2797 | if (lock->lk_replay_owner) { | 2795 | if (lock->lk_replay_owner) { |
2798 | nfs4_get_stateowner(lock->lk_replay_owner); | 2796 | nfs4_get_stateowner(lock->lk_replay_owner); |
2799 | *replay_owner = lock->lk_replay_owner; | 2797 | cstate->replay_owner = lock->lk_replay_owner; |
2800 | } | 2798 | } |
2801 | nfs4_unlock_state(); | 2799 | nfs4_unlock_state(); |
2802 | return status; | 2800 | return status; |
@@ -2888,7 +2886,7 @@ out: | |||
2888 | 2886 | ||
2889 | __be32 | 2887 | __be32 |
2890 | nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | 2888 | nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, |
2891 | struct nfsd4_locku *locku, struct nfs4_stateowner **replay_owner) | 2889 | struct nfsd4_locku *locku) |
2892 | { | 2890 | { |
2893 | struct nfs4_stateid *stp; | 2891 | struct nfs4_stateid *stp; |
2894 | struct file *filp = NULL; | 2892 | struct file *filp = NULL; |
@@ -2946,7 +2944,7 @@ nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
2946 | out: | 2944 | out: |
2947 | if (locku->lu_stateowner) { | 2945 | if (locku->lu_stateowner) { |
2948 | nfs4_get_stateowner(locku->lu_stateowner); | 2946 | nfs4_get_stateowner(locku->lu_stateowner); |
2949 | *replay_owner = locku->lu_stateowner; | 2947 | cstate->replay_owner = locku->lu_stateowner; |
2950 | } | 2948 | } |
2951 | nfs4_unlock_state(); | 2949 | nfs4_unlock_state(); |
2952 | return status; | 2950 | return status; |