aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/page_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 4f59d90b81e6..b5468de49869 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -900,7 +900,8 @@ int zone_watermark_ok(struct zone *z, int order, unsigned long mark,
900 int classzone_idx, int alloc_flags) 900 int classzone_idx, int alloc_flags)
901{ 901{
902 /* free_pages my go negative - that's OK */ 902 /* free_pages my go negative - that's OK */
903 long min = mark, free_pages = z->free_pages - (1 << order) + 1; 903 unsigned long min = mark;
904 long free_pages = z->free_pages - (1 << order) + 1;
904 int o; 905 int o;
905 906
906 if (alloc_flags & ALLOC_HIGH) 907 if (alloc_flags & ALLOC_HIGH)