[Devel] Re: [PATCH][NETNS] Cleanup list walking in setup_net and cleanup_net
David Miller
davem at davemloft.net
Tue Sep 18 13:21:07 PDT 2007
From: Pavel Emelyanov <xemul at 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 at openvz.org>
> Acked-by: "Eric W. Biederman" <ebiederm at xmission.com>
Applied, thanks Pavel.
More information about the Devel
mailing list