• Lee Schermerhorn's avatar
    Fixes bug detected by libhugetlbfs test suite in: · 34d925f9
    Lee Schermerhorn authored
    hugetlb-use-free_pool_huge_page-to-return-unused-surplus-pages.patch
    
    Can't just "continue" for node with no surplus pages when returning
    unused surplus.  We need to advance to 'next node to free'.
    
    With this fix, the "hugetlb balance free across nodes" series passes
    the test suite.
    Signed-off-by: default avatarLee Schermerhorn <lee.schermerhorn@hp.com>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Cc: Nishanth Aravamudan <nacc@us.ibm.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Adam Litke <agl@us.ibm.com>
    Cc: Andy Whitcroft <apw@canonical.com>
    Cc: Eric Whitney <eric.whitney@hp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    34d925f9
hugetlb.c 62.4 KB