[PATCH] setup_per_zone_pages_min() overflow fix
authorAndrew Morton <[email protected]>
Mon, 15 May 2006 16:43:59 +0000 (09:43 -0700)
committerLinus Torvalds <[email protected]>
Mon, 15 May 2006 18:20:55 +0000 (11:20 -0700)
commitac924c6034d9095f95ee889f7e31bbb9145da0c2
tree2db4fc64a008ff2b81a0faf381d8c21ccc5006b2
parent5afdbd6e84c7fbdaa7cfde4cbee0d3a5f4f56da2
[PATCH] setup_per_zone_pages_min() overflow fix

As pointed out in http://bugzilla.kernel.org/show_bug.cgi?id=6490, this
function can experience overflows on 32-bit machines, causing our response to
changed values of min_free_kbytes to go whacky.

Fixing it efficiently is all too hard, so fix it with 64-bit math instead.

Cc: Ake Sandgren <[email protected]>
Cc: Martin Bligh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c