diff options
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4f95bcf0f2b1..59153da58c69 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1525,7 +1525,7 @@ static bool __zone_watermark_ok(struct zone *z, int order, unsigned long mark, | |||
1525 | long min = mark; | 1525 | long min = mark; |
1526 | int o; | 1526 | int o; |
1527 | 1527 | ||
1528 | free_pages -= (1 << order) + 1; | 1528 | free_pages -= (1 << order) - 1; |
1529 | if (alloc_flags & ALLOC_HIGH) | 1529 | if (alloc_flags & ALLOC_HIGH) |
1530 | min -= min / 2; | 1530 | min -= min / 2; |
1531 | if (alloc_flags & ALLOC_HARDER) | 1531 | if (alloc_flags & ALLOC_HARDER) |