]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Prepare inuse field in new_slab()
authorChristoph Lameter <cl@linux.com>
Tue, 9 Aug 2011 21:12:24 +0000 (16:12 -0500)
committerPekka Enberg <penberg@kernel.org>
Fri, 19 Aug 2011 16:34:26 +0000 (19:34 +0300)
commit51ecf49b111f349ddca203b7b36db16bbdb72508
tree76325c985e7265dd5dff9b37b785fa17b7630b03
parent4b4ea8d11e5063ddd6b2671f0920d616fd12af44
slub: Prepare inuse field in new_slab()

inuse will always be set to page->objects. There is no point in
initializing the field to zero in new_slab() and then overwriting
the value in __slab_alloc().

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c