Re: free_memory_available()

Erik Elmgren (erik.elmgren@swipnet.se)
Mon, 28 Dec 1998 03:26:02 +0100


Quoting Alan Cox (alan@lxorguk.ukuu.org.uk):
> > page_alloc.c, line 103
> > : int free_memory_available(void)
> > : {
> > : static int available = 1;
> ^^^^^^
> That bit is important

<sounds impossible to render in writing>

>
> > Have I gone mad (unlikely but possible) and there /is/ a reason to assign
> > a value to a local var and then immediately, unconditionally return?!
>
> Its persistent across calls
>

<blush>

Ok, got it. But the comment about "buddy system" beginning at line 86 in same
file is about free_pages_ok() and should perhaps be moved after subject?

Regards, Erik

--

Ever stop to think and forget to start again?

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