[lkml]   [2008]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] nommu: fix kobjsize() for SLOB and SLUB
Pekka J Enberg <> wrote:

> From: Christoph Lameter <>
> As reported by Paul Mundt, kobjsize() does not work properly with SLOB and SLUB
> that re-use parts of struct page for their own purposes. Fix it up by using
> compound_order() for compound pages that don't have PageSlab set.
> Reported-by: Paul Mundt <>
> Cc: Christoph Lameter <>
> Signed-off-by: Pekka Enberg <>
> ---
> I kept the original object size calculation for non-compound pages in this
> version. It looks like the nommu code uses kobjsize() for all sorts of
> interesting things.

Works for SLAB and SLUB. SLOB breaks well before getting to anything these
patches affect.

Acked-by: David Howells <>

 \ /
  Last update: 2008-05-28 15:15    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean