From: Sven Wegener Date: Wed, 11 Feb 2009 21:04:23 +0000 (-0800) Subject: mm: fix dirty_bytes/dirty_background_bytes sysctls on 64bit arches X-Git-Tag: v2.6.29-rc5~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc3501d411d34823fb9be248a95a0c44f945866f;p=pandora-kernel.git mm: fix dirty_bytes/dirty_background_bytes sysctls on 64bit arches We need to pass an unsigned long as the minimum, because it gets casted to an unsigned long in the sysctl handler. If we pass an int, we'll access four more bytes on 64bit arches, resulting in a random minimum value. [rientjes@google.com: fix type of `old_bytes'] Signed-off-by: Sven Wegener Cc: Peter Zijlstra Cc: Dave Chinner Cc: Christoph Lameter Cc: David Rientjes Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed