]> err.no Git - linux-2.6/commit
slub: fix atomic usage in any_slab_objects()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 May 2008 03:42:39 +0000 (20:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 May 2008 17:46:56 +0000 (10:46 -0700)
commit4ea33e2dc2dab10960877e1649ee527c033f42c0
tree5e66cd116868336d7a0fa3e6da38ebbf3e8d5a32
parentba719baeabbff5476eeb91c223e6921ba29e1490
slub: fix atomic usage in any_slab_objects()

any_slab_objects() does an atomic_read on an atomic_long_t, this
fixes it to use atomic_long_read instead.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c