1
0
Fork 0

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>
hifive-unleashed-5.1
Andrew Morton 2007-07-15 23:41:05 -07:00 committed by Linus Torvalds
parent 97842216b8
commit 3e733f071e
1 changed files with 4 additions and 6 deletions

View File

@ -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;
}