diff options
author | Bart Samwel <bart@samwel.tk> | 2006-03-24 06:15:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:20 -0500 |
commit | f6ef943813ac3085ece7252ea101d663581219f6 (patch) | |
tree | e32d3e57ba6ae235ec1f510b16d77fe9bfa8f96e /include/linux/writeback.h | |
parent | 36f574135e36b86bb6ae794bf1d0fce3efa5601f (diff) |
[PATCH] Represent dirty_*_centisecs as jiffies internally
Make that the internal values for:
/proc/sys/vm/dirty_writeback_centisecs
/proc/sys/vm/dirty_expire_centisecs
are stored as jiffies instead of centiseconds. Let the sysctl interface do
the conversions with full precision using clock_t_to_jiffies, instead of
doing overflow-sensitive on-the-fly conversions every time the values are
used.
Cons: apparent precision loss if HZ is not a multiple of 100, because of
conversion back and forth. This is a common problem for all sysctl values
that use proc_dointvec_userhz_jiffies. (There is only one other in-tree
use, in net/core/neighbour.c.)
Signed-off-by: Bart Samwel <bart@samwel.tk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r-- | include/linux/writeback.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index beaef5c7a0e..60956596149 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -88,8 +88,8 @@ void throttle_vm_writeout(void); | |||
88 | /* These are exported to sysctl. */ | 88 | /* These are exported to sysctl. */ |
89 | extern int dirty_background_ratio; | 89 | extern int dirty_background_ratio; |
90 | extern int vm_dirty_ratio; | 90 | extern int vm_dirty_ratio; |
91 | extern int dirty_writeback_centisecs; | 91 | extern int dirty_writeback_interval; |
92 | extern int dirty_expire_centisecs; | 92 | extern int dirty_expire_interval; |
93 | extern int block_dump; | 93 | extern int block_dump; |
94 | extern int laptop_mode; | 94 | extern int laptop_mode; |
95 | 95 | ||