]> Git Repo - linux.git/commit
mm: fix dirty_bytes/dirty_background_bytes sysctls on 64bit arches
authorSven Wegener <[email protected]>
Wed, 11 Feb 2009 21:04:23 +0000 (13:04 -0800)
committerLinus Torvalds <[email protected]>
Wed, 11 Feb 2009 22:25:35 +0000 (14:25 -0800)
commitfc3501d411d34823fb9be248a95a0c44f945866f
tree9a16de761b4c7d3401149a212b8004df23fbbcca
parent35887b1cf74dc751dd0574b26515142d3cea9376
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.

[[email protected]: fix type of `old_bytes']
Signed-off-by: Sven Wegener <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/sysctl.c
mm/page-writeback.c
This page took 0.050912 seconds and 4 git commands to generate.