]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Move gfpflag masking out of the hotpath
authorChristoph Lameter <cl@linux.com>
Fri, 20 Aug 2010 17:37:17 +0000 (12:37 -0500)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Oct 2010 07:24:27 +0000 (10:24 +0300)
commitcd610822cfa86055b9c98da093c3c8069bd077f8
treea087b2cda4546c51ef7ab4ba3c7764129a63e555
parentdbe79ec4504c9b6266806c6aa932fa66fe9dfdbf
slub: Move gfpflag masking out of the hotpath

Move the gfpflags masking into the hooks for checkers and into the slowpaths.
gfpflag masking requires access to a global variable and thus adds an
additional cacheline reference to the hotpaths.

If no hooks are active then the gfpflag masking will result in
code that the compiler can toss out.

Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c