diff options
author | Mel Gorman <mgorman@suse.de> | 2014-06-04 19:10:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:08 -0400 |
commit | 800a1e750c7b04c2aa2459afca77e936e01c0029 (patch) | |
tree | 98324d1708bfe2e7730a061b75e9fcfe12dab3ec /mm/page_alloc.c | |
parent | 65bb371984d6a2c909244eb749e482bb40b72e36 (diff) |
mm: page_alloc: do not treat a zone that cannot be used for dirty pages as "full"
If a zone cannot be used for a dirty page then it gets marked "full" which
is cached in the zlc and later potentially skipped by allocation requests
that have nothing to do with dirty zones.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-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 8e766241cf56..b4381eaee715 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1967,7 +1967,7 @@ zonelist_scan: | |||
1967 | */ | 1967 | */ |
1968 | if ((alloc_flags & ALLOC_WMARK_LOW) && | 1968 | if ((alloc_flags & ALLOC_WMARK_LOW) && |
1969 | (gfp_mask & __GFP_WRITE) && !zone_dirty_ok(zone)) | 1969 | (gfp_mask & __GFP_WRITE) && !zone_dirty_ok(zone)) |
1970 | goto this_zone_full; | 1970 | continue; |
1971 | 1971 | ||
1972 | mark = zone->watermark[alloc_flags & ALLOC_WMARK_MASK]; | 1972 | mark = zone->watermark[alloc_flags & ALLOC_WMARK_MASK]; |
1973 | if (!zone_watermark_ok(zone, order, mark, | 1973 | if (!zone_watermark_ok(zone, order, mark, |