OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][NETNS] Cleanup list walking in setup_net and cleanup_net
Re: [PATCH][NETNS] Cleanup list walking in setup_net and cleanup_net [message #20488 is a reply to message #20456] Tue, 18 September 2007 20:21 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Tue, 18 Sep 2007 12:06:53 +0400

> I proposed introducing a list_for_each_entry_continue_reverse macro
> to be used in setup_net() when unrolling the failed ->init callback.
> 
> Here is the macro and some more cleanup in the setup_net() itself
> to remove one variable from the stack :) The same thing is for the
> cleanup_net() - the existing list_for_each_entry_reverse() is used.
> 
> Minor, but the code looks nicer.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>

Applied, thanks Pavel.
 
Read Message
Read Message
Previous Topic: [PATCH 20/33] memory controller add documentation
Next Topic: [patch 0/1] fix veth netif_carrier_off
Goto Forum:
  


Current Time: Wed Aug 27 22:55:32 GMT 2025

Total time taken to generate the page: 0.22462 seconds