slab: Fix missing DEBUG_SLAB last user
authorShiyong Li <shi-yong.li@motorola.com>
Mon, 12 Apr 2010 05:48:21 +0000 (13:48 +0800)
committerPekka Enberg <penberg@cs.helsinki.fi>
Wed, 14 Apr 2010 17:52:45 +0000 (20:52 +0300)
Even with SLAB_RED_ZONE and SLAB_STORE_USER enabled, kernel would NOT store
redzone and last user data around allocated memory space if "arch cache line >
sizeof(unsigned long long)". As a result, last user information is unexpectedly
MISSED while dumping slab corruption log.

This fix makes sure that redzone and last user tags get stored unless the
required alignment breaks redzone's.

Signed-off-by: Shiyong Li <shi-yong.li@motorola.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>

No differences found