Re: [PATCH] not empty pages list after fuse_readpages

From: Dave Hansen
Date: Wed Aug 09 2006 - 17:00:24 EST


On Thu, 2006-08-10 at 00:20 +0400, Alexander Zarochentsev wrote:
>
> }
> + if (0) {
> +clean_pages_up:
> + readpages_cleanup_helper(pages);
> + }
> return err;
> }

If the list is really empty during a normal exit, does it hurt to call
the helper? The whole goto inside of an if(0) statement looks a little
funky.

The following would be the same number of lines of code, and this is
used pretty commonly in the kernel:

return err;
clean_pages_up:
readpages_cleanup_helper(pages);
return err;

But, I really wonder what is wrong with this:

clean_pages_up:
readpages_cleanup_helper(pages);
return err;

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/