]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: schedule periodic writeback with sysctl
authorYafang Shao <laoar.shao@gmail.com>
Mon, 9 Oct 2017 21:44:13 +0000 (05:44 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Oct 2017 14:27:40 +0000 (08:27 -0600)
commit0c0d167453cbdc66190f6b094171d23225b936ae
tree8cd6f2a226de8cb7be61cba130ed7ee2a1d9d0ed
parentc84305779920027e42a94fd65d6601d4e916800c
writeback: schedule periodic writeback with sysctl

After disable periodic writeback by writing 0 to
dirty_writeback_centisecs, the handler wb_workfn() will not be
entered again until the dirty background limit reaches or
sync syscall is executed or no enough free memory available or
vmscan is triggered.

So the periodic writeback can't be enabled by writing a non-zero
value to dirty_writeback_centisecs.
As it can be disabled by sysctl, it should be able to enable by
sysctl as well.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/page-writeback.c