SLOB: fix bogus ksize calculation fix
authorMatt Mackall <mpm@selenic.com>
Wed, 8 Oct 2008 19:51:57 +0000 (14:51 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Oct 2008 19:18:27 +0000 (12:18 -0700)
commit70096a561d1e09120bae1f293f3632cedbfd5c68
tree6c5f7474089ceeff06aa515a5b39cb38e7318efe
parent69849375d6b13e94d08cdc94b49b11fbab454a0e
SLOB: fix bogus ksize calculation fix

This fixes the previous fix, which was completely wrong on closer
inspection. This version has been manually tested with a user-space
test harness and generates sane values. A nearly identical patch has
been boot-tested.

The problem arose from changing how kmalloc/kfree handled alignment
padding without updating ksize to match. This brings it in sync.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slob.c