aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJ.Bruce Fields <bfields@fieldses.org>2006-12-13 03:35:28 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-13 12:05:54 -0500
commita4f1706a9bd94d0e33e853a7e9f40b2650d54fbf (patch)
tree66c2bb36ac0b9da3edb13bcee77a46ab576a5e89 /fs/nfsd/nfs4state.c
parentd9e626f1e23358487595c2d3901126d00f9de7e0 (diff)
[PATCH] knfsd: nfsd4: move replay_owner to cstate
Tuck away the replay_owner in the cstate while we're at it. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c22
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
2244nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 2244nfsd4_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,
2280out: 2279out:
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
2315nfsd4_open_downgrade(struct svc_rqst *rqstp, 2314nfsd4_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,
2361out: 2359out:
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
2374nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 2372nfsd4_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,
2405out: 2403out:
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
2648nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 2646nfsd4_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
2890nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 2888nfsd4_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,
2946out: 2944out:
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;