[lkml]   [2007]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] slab: remove colouroff from struct slab
    On Thu, 22 Feb 2007, Pekka J Enberg wrote:

    > As the color offset is always within the first page of the slab,
    > virt_to_page() works just fine without slabp->colouroff.

    True but then we pass an address to kmem_freepages that is not the start
    of the page. kmem_freepages will then in turn call free_pages() with an
    address that is not the start of a page. free_pages() will then do another
    virt_to_page() which ignored the offset into the page again. And so the
    approach works but an uneasy feeling remains since the address we got from
    kmem_getpages() is different from what we pass to kmem_freepages().

    Could you think about a way to do this in a cleaner way? Maybe use a
    struct page * in both kmem_get/freepages? Or add some comment explaining
    the situation?
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-02-23 15:03    [W:0.021 / U:4.488 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site