[PATCH] don't use REMOVE_LINKS/SET_LINKS for reparenting