diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-09-06 17:20:34 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-13 18:29:03 -0400 |
commit | 881ea2b11e8a786a8d30c108261296953380bead (patch) | |
tree | 966021f52ef0ca25a7531f6955fa594b090031b4 /fs/nfsd | |
parent | 2288d0e3958b94bcc3c00a78ea06909a8eb66378 (diff) |
nfsd4: rename init_stateid
Note this is actually open-stateid specific.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 48134635fc2..73b5e1e264f 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2314,7 +2314,7 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str | |||
2314 | } | 2314 | } |
2315 | 2315 | ||
2316 | static inline void | 2316 | static inline void |
2317 | init_stateid(struct nfs4_stateid *stp, struct nfs4_file *fp, struct nfsd4_open *open) { | 2317 | init_open_stateid(struct nfs4_stateid *stp, struct nfs4_file *fp, struct nfsd4_open *open) { |
2318 | struct nfs4_openowner *oo = open->op_openowner; | 2318 | struct nfs4_openowner *oo = open->op_openowner; |
2319 | unsigned int hashval = stateid_hashval(oo->oo_owner.so_id, fp->fi_id); | 2319 | unsigned int hashval = stateid_hashval(oo->oo_owner.so_id, fp->fi_id); |
2320 | 2320 | ||
@@ -2934,7 +2934,7 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf | |||
2934 | status = nfs4_new_open(rqstp, &stp, fp, current_fh, open); | 2934 | status = nfs4_new_open(rqstp, &stp, fp, current_fh, open); |
2935 | if (status) | 2935 | if (status) |
2936 | goto out; | 2936 | goto out; |
2937 | init_stateid(stp, fp, open); | 2937 | init_open_stateid(stp, fp, open); |
2938 | status = nfsd4_truncate(rqstp, current_fh, open); | 2938 | status = nfsd4_truncate(rqstp, current_fh, open); |
2939 | if (status) { | 2939 | if (status) { |
2940 | release_open_stateid(stp); | 2940 | release_open_stateid(stp); |