aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2010-05-11 17:12:51 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-05-11 21:02:01 -0400
commit328efbab0f8ae1617448917906a12e5f568553b6 (patch)
tree1bf619463f9a3e7e5a832860ea50b020938d654e
parentbe1fdf6c4386f56271d2f690b93ef686b769587c (diff)
nfsd4: use list_move in move_to_confirmed
rather than list_del_init, list_add Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
-rw-r--r--fs/nfsd/nfs4state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index f8bf6190a5d3..aecafb2e4056 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -859,10 +859,9 @@ move_to_confirmed(struct nfs4_client *clp)
859 unsigned int strhashval; 859 unsigned int strhashval;
860 860
861 dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp); 861 dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp);
862 list_del_init(&clp->cl_strhash);
863 list_move(&clp->cl_idhash, &conf_id_hashtbl[idhashval]); 862 list_move(&clp->cl_idhash, &conf_id_hashtbl[idhashval]);
864 strhashval = clientstr_hashval(clp->cl_recdir); 863 strhashval = clientstr_hashval(clp->cl_recdir);
865 list_add(&clp->cl_strhash, &conf_str_hashtbl[strhashval]); 864 list_move(&clp->cl_strhash, &conf_str_hashtbl[strhashval]);
866 renew_client(clp); 865 renew_client(clp);
867} 866}
868 867