diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f799217dc2f3..60663232fbb2 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1755,7 +1755,7 @@ inline void setup_pageset(struct per_cpu_pageset *p, unsigned long batch) | |||
1755 | 1755 | ||
1756 | pcp = &p->pcp[0]; /* hot */ | 1756 | pcp = &p->pcp[0]; /* hot */ |
1757 | pcp->count = 0; | 1757 | pcp->count = 0; |
1758 | pcp->low = 2 * batch; | 1758 | pcp->low = 0; |
1759 | pcp->high = 6 * batch; | 1759 | pcp->high = 6 * batch; |
1760 | pcp->batch = max(1UL, 1 * batch); | 1760 | pcp->batch = max(1UL, 1 * batch); |
1761 | INIT_LIST_HEAD(&pcp->list); | 1761 | INIT_LIST_HEAD(&pcp->list); |
@@ -1764,7 +1764,7 @@ inline void setup_pageset(struct per_cpu_pageset *p, unsigned long batch) | |||
1764 | pcp->count = 0; | 1764 | pcp->count = 0; |
1765 | pcp->low = 0; | 1765 | pcp->low = 0; |
1766 | pcp->high = 2 * batch; | 1766 | pcp->high = 2 * batch; |
1767 | pcp->batch = max(1UL, 1 * batch); | 1767 | pcp->batch = max(1UL, batch/2); |
1768 | INIT_LIST_HEAD(&pcp->list); | 1768 | INIT_LIST_HEAD(&pcp->list); |
1769 | } | 1769 | } |
1770 | 1770 | ||