]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
slub: Determine gfpflags once and not every time a slab is allocated
authorChristoph Lameter <clameter@sgi.com>
Thu, 14 Feb 2008 22:21:32 +0000 (14:21 -0800)
committerChristoph Lameter <christoph@stapp.engr.sgi.com>
Thu, 14 Feb 2008 23:30:01 +0000 (15:30 -0800)
commitb7a49f0d4c34166ae84089d9f145cfaae1b0eec5
tree716bd20c8b920511f032a42be78c0a523a17565d
parentdada123d99c241d1a45798a7c77bcf99c4968704
slub: Determine gfpflags once and not every time a slab is allocated

Currently we determine the gfp flags to pass to the page allocator
each time a slab is being allocated.

Determine the bits to be set at the time the slab is created. Store
in a new allocflags field and add the flags in allocate_slab().

Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
include/linux/slub_def.h
mm/slub.c