diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-09-07 12:54:06 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-13 18:29:04 -0400 |
commit | 91a8c04031d051db41ec2a8c15e24622da037382 (patch) | |
tree | addca8ea215ba1af1cde1609c5fbf1aba9f1af09 /fs/nfsd | |
parent | 881ea2b11e8a786a8d30c108261296953380bead (diff) |
nfsd4: remove redundant stateid initialization
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 73b5e1e264fa..768382d1de97 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2318,10 +2318,7 @@ init_open_stateid(struct nfs4_stateid *stp, struct nfs4_file *fp, struct nfsd4_o | |||
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 | ||
2321 | INIT_LIST_HEAD(&stp->st_hash); | ||
2322 | INIT_LIST_HEAD(&stp->st_perstateowner); | ||
2323 | INIT_LIST_HEAD(&stp->st_lockowners); | 2321 | INIT_LIST_HEAD(&stp->st_lockowners); |
2324 | INIT_LIST_HEAD(&stp->st_perfile); | ||
2325 | list_add(&stp->st_hash, &stateid_hashtbl[hashval]); | 2322 | list_add(&stp->st_hash, &stateid_hashtbl[hashval]); |
2326 | list_add(&stp->st_perstateowner, &oo->oo_owner.so_stateids); | 2323 | list_add(&stp->st_perstateowner, &oo->oo_owner.so_stateids); |
2327 | list_add(&stp->st_perfile, &fp->fi_stateids); | 2324 | list_add(&stp->st_perfile, &fp->fi_stateids); |
@@ -3874,10 +3871,6 @@ alloc_init_lock_stateid(struct nfs4_lockowner *lo, struct nfs4_file *fp, struct | |||
3874 | stp = nfs4_alloc_stateid(); | 3871 | stp = nfs4_alloc_stateid(); |
3875 | if (stp == NULL) | 3872 | if (stp == NULL) |
3876 | goto out; | 3873 | goto out; |
3877 | INIT_LIST_HEAD(&stp->st_hash); | ||
3878 | INIT_LIST_HEAD(&stp->st_perfile); | ||
3879 | INIT_LIST_HEAD(&stp->st_perstateowner); | ||
3880 | INIT_LIST_HEAD(&stp->st_lockowners); /* not used */ | ||
3881 | list_add(&stp->st_hash, &stateid_hashtbl[hashval]); | 3874 | list_add(&stp->st_hash, &stateid_hashtbl[hashval]); |
3882 | list_add(&stp->st_perfile, &fp->fi_stateids); | 3875 | list_add(&stp->st_perfile, &fp->fi_stateids); |
3883 | list_add(&stp->st_perstateowner, &lo->lo_owner.so_stateids); | 3876 | list_add(&stp->st_perstateowner, &lo->lo_owner.so_stateids); |