]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc: in zone_pcp_update(), uze zone_pageset_init()
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 27 Jun 2013 23:51:24 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:28 +0000 (16:37 +1000)
commit8ada1efc5cc060a7cdb25762683f98bc7d0b3ad2
tree8decf3aef4096449cf58010cd564e02daea0db42
parente5f97c71ce27f7ef5d497a0737ecdcc9f171631b
mm/page_alloc: in zone_pcp_update(), uze zone_pageset_init()

Previously, zone_pcp_update() called pageset_set_batch() directly,
essentially assuming that percpu_pagelist_fraction == 0.  Correct this by
calling zone_pageset_init(), which chooses the appropriate ->batch and
->high calculations.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c