Replaces two GOTO statements with one IF_ELSE statement in /fs/open.c
Quoted 4 lines · Andrew Morton
The old trick to make the error-handling code out-of-line shouldn't be needed nowadays -
IS_ERRusesunlikely(), which is supposed to handle that stuff.
In fact it doesn't even work anymore with -freorder-blocks (which is default on i386). Without unlikely gcc 3.3/3.4 will happily move the out of line block back. I was told that newer gcc gives a bit more value to user gotos, but it doesn't help on the older compilers.
-Andi (who also thinks there are too many gotos in the kernel and many should be cleaned up)