SLUB: Do our own flags based on PG_active and PG_error
authorChristoph Lameter <clameter@sgi.com>
Thu, 17 May 2007 05:10:56 +0000 (22:10 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 May 2007 12:23:03 +0000 (05:23 -0700)
commit5577bd8a85c8b7643a241789b14fafa9c8a6c7db
tree0ef0a8adb6811277df3f6e41a2578b1118bc80ef
parenteefaca9c3246f3daf56e7ed02987f79abcee7087
SLUB: Do our own flags based on PG_active and PG_error

The atomicity when handling flags in SLUB is not necessary since both flags
used by SLUB are not updated in a racy way.  Flag updates are either done
during slab creation or destruction or under slab_lock.  Some of these flags
do not have the non atomic variants that we need.  So define our own.

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>
mm/slub.c