diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-16 08:41:05 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 18:05:47 +0200 |
commit | 3e733f071e16bdad13a75eedb102e8941b09927e (patch) | |
tree | 4c3be61c45b6b7a5943b4680a27b42aacf951b00 /mm | |
parent | Allow softlockup to be runtime disabled (diff) | |
download | linux-3e733f071e16bdad13a75eedb102e8941b09927e.tar.xz linux-3e733f071e16bdad13a75eedb102e8941b09927e.zip |
dirty_writeback_centisecs_handler() cleanup
Repair indenting bustage.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index eec1481ba44f..ea9da3bed3e9 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -476,15 +476,13 @@ static void wb_kupdate(unsigned long arg) * sysctl handler for /proc/sys/vm/dirty_writeback_centisecs */ int dirty_writeback_centisecs_handler(ctl_table *table, int write, - struct file *file, void __user *buffer, size_t *length, loff_t *ppos) + struct file *file, void __user *buffer, size_t *length, loff_t *ppos) { proc_dointvec_userhz_jiffies(table, write, file, buffer, length, ppos); - if (dirty_writeback_interval) { - mod_timer(&wb_timer, - jiffies + dirty_writeback_interval); - } else { + if (dirty_writeback_interval) + mod_timer(&wb_timer, jiffies + dirty_writeback_interval); + else del_timer(&wb_timer); - } return 0; } |