Re: -mm -> 2.6.13 merge status

Olivier Galibert
2005-06-23T16:23:33Z

On Thu, Jun 23, 2005 at 08:15:03PM +0400, Vladimir Saveliev wrote:
> Pekka, would you prefer something like:
>
> reiser4_fill_super()
> {
> if (init_a() == 0) {
> if (init_b() == 0) {
> if (init_c() == 0) {
> if (init_last() == 0)
> return 0;
> else {
> done_c();
> done_b();
> done_a();
> }
> } else {
> done_b();
> done_a();
> }
> } else {
> done_a();
> }
> }
> }

No, I think he means the traditional:

reiser4_fill_super()
{
if (init_a())
goto failed_a;
if (init_b())
goto failed_b;
if (init_c())
goto failed_c;
if (init_last())
goto failed_last;
return 0;

failed_last:
done_c();
failed_c:
done_b();
failed_b:
done_a();
failed_a:
return 1;
}