]> err.no Git - linux-2.6/commit
[PATCH] setup_per_zone_pages_min() overflow fix
authorAndrew Morton <akpm@osdl.org>
Mon, 15 May 2006 16:43:59 +0000 (09:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
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 <ake.sandgren@hpc2n.umu.se>
Cc: Martin Bligh <mbligh@google.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c