nfsd4: use list_move in move_to_confirmed
authorBenny Halevy <bhalevy@panasas.com>
Tue, 11 May 2010 21:12:51 +0000 (00:12 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 12 May 2010 01:02:01 +0000 (21:02 -0400)
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>
fs/nfsd/nfs4state.c

index f8bf6190a5d38d07b215c5b88012a63c691cb9dc..aecafb2e4056c2da1f9eb94fcc5ef4fa0f84920d 100644 (file)
@@ -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);
 }