The patch titled Subject: mm, page_alloc: only enforce watermarks for order-0 allocations -fix has been removed from the -mm tree. Its filename was mm-page_alloc-only-enforce-watermarks-for-order-0-allocations-fix.patch This patch was dropped because it was folded into mm-page_alloc-only-enforce-watermarks-for-order-0-allocations.patch ------------------------------------------------------ From: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Subject: mm, page_alloc: only enforce watermarks for order-0 allocations -fix This patch is updating comments for clarity and converts a bool to an int. The code as-is is ok as the compiler is meant to cast it correctly but it looks odd to people who know the value would be truncated and lost for other types. This is a fix to the mmotm patch mm-page_alloc-only-enforce-watermarks-for-order-0-allocations.patch Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Vitaly Wool <vitalywool@xxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff -puN mm/page_alloc.c~mm-page_alloc-only-enforce-watermarks-for-order-0-allocations-fix mm/page_alloc.c --- a/mm/page_alloc.c~mm-page_alloc-only-enforce-watermarks-for-order-0-allocations-fix +++ a/mm/page_alloc.c @@ -2333,7 +2333,7 @@ static bool __zone_watermark_ok(struct z { long min = mark; int o; - const bool alloc_harder = (alloc_flags & ALLOC_HARDER); + const int alloc_harder = (alloc_flags & ALLOC_HARDER); /* free_pages may go negative - that's OK */ free_pages -= (1 << order) - 1; @@ -2357,14 +2357,19 @@ static bool __zone_watermark_ok(struct z free_pages -= zone_page_state(z, NR_FREE_CMA_PAGES); #endif + /* + * Check watermarks for an order-0 allocation request. If these + * are not met, then a high-order request also cannot go ahead + * even if a suitable page happened to be free. + */ if (free_pages <= min + z->lowmem_reserve[classzone_idx]) return false; - /* order-0 watermarks are ok */ + /* If this is an order-0 request then the watermark is fine */ if (!order) return true; - /* Check at least one high-order page is free */ + /* For a high-order request, check at least one suitable page is free */ for (o = order; o < MAX_ORDER; o++) { struct free_area *area = &z->free_area[o]; int mt; _ Patches currently in -mm which might be from mgorman@xxxxxxxxxxxxxxxxxxx are mm-page_alloc-remove-unnecessary-parameter-from-zone_watermark_ok_safe.patch mm-page_alloc-remove-unnecessary-recalculations-for-dirty-zone-balancing.patch mm-page_alloc-remove-unnecessary-taking-of-a-seqlock-when-cpusets-are-disabled.patch mm-page_alloc-use-masks-and-shifts-when-converting-gfp-flags-to-migrate-types.patch mm-page_alloc-distinguish-between-being-unable-to-sleep-unwilling-to-sleep-and-avoiding-waking-kswapd.patch mm-page_alloc-distinguish-between-being-unable-to-sleep-unwilling-to-sleep-and-avoiding-waking-kswapd-fix.patch mm-page_alloc-rename-__gfp_wait-to-__gfp_reclaim.patch mm-page_alloc-delete-the-zonelist_cache.patch mm-page_alloc-remove-migrate_reserve.patch mm-page_alloc-reserve-pageblocks-for-high-order-atomic-allocations-on-demand.patch mm-page_alloc-only-enforce-watermarks-for-order-0-allocations.patch mm-page_alloc-hide-some-GFP-internals-and-document-the-bit-and-flag-combinations.patch mm-page_alloc-hide-some-gfp-internals-and-document-the-bit-and-flag-combinations-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html