lkml.org 
[lkml]   [2007]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 03/10] mm: tag reseve pages
    From
    Date
    On Mon, 2007-08-06 at 11:43 -0700, Christoph Lameter wrote:
    > On Mon, 6 Aug 2007, Andi Kleen wrote:
    >
    > > > > pgoff_t index; /* Our offset within mapping. */
    > > > > void *freelist; /* SLUB: freelist req. slab lock */
    > > > > + int reserve; /* page_alloc: page is a reserve page */
    > > >
    > > > Extending page struct ???
    > >
    > > Note it's an union.
    >
    > Ok. Then under what conditions can we use reserve? Right after alloc?

    Yes, its usually only observed right after alloc. Its basically an extra
    return value.

    Daniel suggested it was about saving page flags, _maybe_. The value is
    1) rare and 2) usually only interesting right after alloc. So wasting a
    precious page flag which would keep this state for the duration of the
    whole allocation seemed like a waste.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-08-06 20:53    [W:5.502 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site