]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Slab allocators: Replace explicit zeroing with __GFP_ZERO
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:29 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:02 +0000 (10:23 -0700)
commit94f6030ca792c57422f04a73e7a872d8325946d3
tree0197f24d82b1706f1b0521f2cf68feeff64123df
parent81cda6626178cd55297831296ba8ecedbfd8b52d
Slab allocators: Replace explicit zeroing with __GFP_ZERO

kmalloc_node() and kmem_cache_alloc_node() were not available in a zeroing
variant in the past.  But with __GFP_ZERO it is possible now to do zeroing
while allocating.

Use __GFP_ZERO to remove the explicit clearing of memory via memset whereever
we can.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
block/as-iosched.c
block/cfq-iosched.c
block/deadline-iosched.c
block/elevator.c
block/genhd.c
block/ll_rw_blk.c
drivers/ide/ide-probe.c
kernel/timer.c
lib/genalloc.c
mm/allocpercpu.c
mm/mempool.c
mm/vmalloc.c