]> git.karo-electronics.de Git - karo-tx-linux.git/commit
slab: use slab_pre_alloc_hook in SLAB allocator shared with SLUB
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 9 Feb 2016 23:11:55 +0000 (10:11 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:11:55 +0000 (10:11 +1100)
commit4b706ecef178a25763341ef8ed6a8a147cbc4f0e
tree465e83f9e6f773842394ce3c4c49647ed28acb6c
parent7f02495b1f06c5868fc4c7d4ae589018f756e816
slab: use slab_pre_alloc_hook in SLAB allocator shared with SLUB

Deduplicate code in SLAB allocator functions slab_alloc() and
slab_alloc_node() by using the slab_pre_alloc_hook() call, which is now
shared between SLUB and SLAB.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.c