Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 328efbab authored by Benny Halevy's avatar Benny Halevy Committed by J. Bruce Fields
Browse files

nfsd4: use list_move in move_to_confirmed



rather than list_del_init, list_add

Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent be1fdf6c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
}