Re: [PATCH] ext3_clear_inode(): avoid kfree(NULL)

From: Pekka Enberg
Date: Sat Jun 24 2006 - 12:18:23 EST


On 6/24/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
>
> Because at that callsite, NULL is the common case. We avoid a do-nothing
> function call most of the time. It's a nano-optimisation.

but a function call is basically free, while an if () is not... even
with unlikely()...

Yeah, but the called function has an if statement too...

Pekka
-
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/