]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: reliably update bandwidth estimation
authorJan Kara <jack@suse.cz>
Thu, 2 Sep 2021 21:53:06 +0000 (14:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:10 +0000 (09:58 -0700)
commite5406f0eac58f76769755939b75679f1965d3326
tree701fd0b0ab22a1b8d13996ced2bc161aee27631b
parent793d307a5049d36f51425982069f38b9c0186b01
writeback: reliably update bandwidth estimation

Currently we trigger writeback bandwidth estimation from
balance_dirty_pages() and from wb_writeback().  However neither of these
need to trigger when the system is relatively idle and writeback is
triggered e.g.  from fsync(2).  Make sure writeback estimates happen
reliably by triggering them from do_writepages().

Link: https://lkml.kernel.org/r/20210713104716.22868-2-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Michael Stapelberg <stapelberg+linux@google.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fs-writeback.c
include/linux/backing-dev.h
include/linux/writeback.h
mm/page-writeback.c