diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-15 23:41:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 09:05:47 -0700 |
commit | 3e733f071e16bdad13a75eedb102e8941b09927e (patch) | |
tree | 4c3be61c45b6b7a5943b4680a27b42aacf951b00 /mm/page-writeback.c | |
parent | 97842216b8400fe9d1a20468959e2989180f8f79 (diff) | |
download | linux-3e733f071e16bdad13a75eedb102e8941b09927e.tar.gz linux-3e733f071e16bdad13a75eedb102e8941b09927e.tar.bz2 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/page-writeback.c')
-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; } |