diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2014-12-10 18:43:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 20:41:05 -0500 |
commit | 510f550788b8aba5070c59ec652de8b4ab660852 (patch) | |
tree | 1c3c9cc5cb0dd8dff0d56fd4c2038d46b2dd9b08 /mm | |
parent | ec25af84b23b6862341b5b5b68d24be3f53b8d2c (diff) |
mm, cma: drain single zone pcplists
CMA allocation drains pcplists so that pages can merge back to buddy
allocator. Since it operates on a single zone, we can reduce the
pcplists drain to the single zone, which is now possible.
The change should make CMA allocations faster and not disturbing
unrelated pcplists anymore.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-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 13d5796de8f3..f3a6bf12cbc1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -6416,7 +6416,7 @@ int alloc_contig_range(unsigned long start, unsigned long end, | |||
6416 | */ | 6416 | */ |
6417 | 6417 | ||
6418 | lru_add_drain_all(); | 6418 | lru_add_drain_all(); |
6419 | drain_all_pages(NULL); | 6419 | drain_all_pages(cc.zone); |
6420 | 6420 | ||
6421 | order = 0; | 6421 | order = 0; |
6422 | outer_start = start; | 6422 | outer_start = start; |