diff options
author | Tigran Mkrtchyan <kofemann@gmail.com> | 2012-02-13 16:55:28 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-02-15 11:20:41 -0500 |
commit | 8307111476bcd6c3e126a06ba9240dfaef83ef63 (patch) | |
tree | aecc5126b7928448f5ccd3a5673bd212e730ac3c /fs/nfsd/nfs4proc.c | |
parent | 80e01cc1e25de079e495e261f34be86d85f0797c (diff) |
nfsd41: save and restore current stateid with current fh
Signed-off-by: Tigran Mkrtchyan <kofemann@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index f1dd2702b8fd..32a291af1b4e 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -453,6 +453,7 @@ nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
453 | return nfserr_restorefh; | 453 | return nfserr_restorefh; |
454 | 454 | ||
455 | fh_dup2(&cstate->current_fh, &cstate->save_fh); | 455 | fh_dup2(&cstate->current_fh, &cstate->save_fh); |
456 | cstate->current_stateid = cstate->save_stateid; | ||
456 | return nfs_ok; | 457 | return nfs_ok; |
457 | } | 458 | } |
458 | 459 | ||
@@ -464,6 +465,7 @@ nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
464 | return nfserr_nofilehandle; | 465 | return nfserr_nofilehandle; |
465 | 466 | ||
466 | fh_dup2(&cstate->save_fh, &cstate->current_fh); | 467 | fh_dup2(&cstate->save_fh, &cstate->current_fh); |
468 | cstate->save_stateid = cstate->current_stateid; | ||
467 | return nfs_ok; | 469 | return nfs_ok; |
468 | } | 470 | } |
469 | 471 | ||