summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2010-05-11 23:12:51 +0200
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-05-12 03:02:01 +0200
commit328efbab0f8ae1617448917906a12e5f568553b6 (patch)
tree1bf619463f9a3e7e5a832860ea50b020938d654e /fs/nfsd
parentnfsd4: fold release_session into expire_client (diff)
downloadlinux-328efbab0f8ae1617448917906a12e5f568553b6.tar.xz
linux-328efbab0f8ae1617448917906a12e5f568553b6.zip
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>
Diffstat (limited to 'fs/nfsd')
-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)
unsigned int strhashval;
dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp);
- list_del_init(&clp->cl_strhash);
list_move(&clp->cl_idhash, &conf_id_hashtbl[idhashval]);
strhashval = clientstr_hashval(clp->cl_recdir);
- list_add(&clp->cl_strhash, &conf_str_hashtbl[strhashval]);
+ list_move(&clp->cl_strhash, &conf_str_hashtbl[strhashval]);
renew_client(clp);
}