Re: [PATCH v2] mempolicy: reduce references to the current

From: David Rientjes
Date: Fri Apr 15 2011 - 19:35:14 EST

On Fri, 15 Apr 2011, Namhyung Kim wrote:

> Remove duplicated reference to the 'current' task using a local
> variable. Since refering the current can be a burden, it'd better
> cache the reference, IMHO. At least this saves some bytes on x86_64.
> $ size mempolicy-{old,new}.o
> text data bss dec hex filename
> 25203 2448 9176 36827 8fdb mempolicy-old.o
> 25136 2448 9184 36768 8fa0 mempolicy-new.o

So this is the opposite of what Andrew did in c06b1fca18c3
(mm/page_alloc.c: don't cache `current' in a local) for the page
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at