Re: [PATCH] hugetlb: Fix pool resizing corner case

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adam Litke <agl@...>
Cc: Dave Hansen <haveblue@...>, Andrew Morton <akpm@...>, <linux-mm@...>, <linux-kernel@...>
Date: Wednesday, October 3, 2007 - 3:03 pm

On 10/3/07, Adam Litke <agl@us.ibm.com> wrote:

Good catch, adam.

From what I can see, the statement
        if (count >= nr_huge_pages)
                return nr_huge_pages;

in set_max_huge_pages() is useless because (1) we recalculate "count"
variable below it; and (2) both try_to_free_low() and the while loop
below the call to try_to_free_low() will terminate correctly.  If you
feel like it, please clean it up as well.

If not, I'm fine with that.

Acked-by: Ken Chen <kenchen@google.com>
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] hugetlb: Fix pool resizing corner case, Adam Litke, (Wed Oct 3, 11:47 am)
Re: [PATCH] hugetlb: Fix pool resizing corner case, Dave Hansen, (Wed Oct 3, 1:40 pm)
Re: [PATCH] hugetlb: Fix pool resizing corner case, Adam Litke, (Wed Oct 3, 2:33 pm)
Re: [PATCH] hugetlb: Fix pool resizing corner case, Ken Chen, (Wed Oct 3, 3:03 pm)
Re: [PATCH] hugetlb: Fix pool resizing corner case, Dave Hansen, (Wed Oct 3, 2:59 pm)