]> git.baikalelectronics.ru Git - kernel.git/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)
commita8e8455e4da341a1c12af7c2136746d52e437cb9
tree2db4fc64a008ff2b81a0faf381d8c21ccc5006b2
parent4f500654106df02453995c83ddb7e1a6a7d785f0
[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