Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365419
b: refs/heads/master
c: fed2719
h: refs/heads/master
i:
  365417: 62f488e
  365415: 1df9ffb
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Apr 29, 2013
1 parent 5704c8e commit 28c1a08
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e2cdbcb86b0abefc3d07922c48edb01fece3c56
refs/heads/master: fed2719e7a8612471bd17113ed326d38df434f17
17 changes: 16 additions & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1942,9 +1942,24 @@ get_page_from_freelist(gfp_t gfp_mask, nodemask_t *nodemask, unsigned int order,
continue;
default:
/* did we reclaim enough */
if (!zone_watermark_ok(zone, order, mark,
if (zone_watermark_ok(zone, order, mark,
classzone_idx, alloc_flags))
goto try_this_zone;

/*
* Failed to reclaim enough to meet watermark.
* Only mark the zone full if checking the min
* watermark or if we failed to reclaim just
* 1<<order pages or else the page allocator
* fastpath will prematurely mark zones full
* when the watermark is between the low and
* min watermarks.
*/
if (((alloc_flags & ALLOC_WMARK_MASK) == ALLOC_WMARK_MIN) ||
ret == ZONE_RECLAIM_SOME)
goto this_zone_full;

continue;
}
}

Expand Down

0 comments on commit 28c1a08

Please sign in to comment.