aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c10
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)
476 * sysctl handler for /proc/sys/vm/dirty_writeback_centisecs 476 * sysctl handler for /proc/sys/vm/dirty_writeback_centisecs
477 */ 477 */
478int dirty_writeback_centisecs_handler(ctl_table *table, int write, 478int dirty_writeback_centisecs_handler(ctl_table *table, int write,
479 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) 479 struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
480{ 480{
481 proc_dointvec_userhz_jiffies(table, write, file, buffer, length, ppos); 481 proc_dointvec_userhz_jiffies(table, write, file, buffer, length, ppos);
482 if (dirty_writeback_interval) { 482 if (dirty_writeback_interval)
483 mod_timer(&wb_timer, 483 mod_timer(&wb_timer, jiffies + dirty_writeback_interval);
484 jiffies + dirty_writeback_interval); 484 else
485 } else {
486 del_timer(&wb_timer); 485 del_timer(&wb_timer);
487 }
488 return 0; 486 return 0;
489} 487}
490 488