]> www.infradead.org Git - users/jedix/linux-maple.git/commit
writeback: reliably update bandwidth estimation
authorJan Kara <jack@suse.cz>
Mon, 23 Aug 2021 23:59:06 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:33:38 +0000 (09:33 +1000)
commit4bd3905f5e13aa4fee56ea3a9adc2704c71a5865
treed4f788584751f90093e99baa0f1b2246596889bd
parent1a26c8aaf2793e669eafaaa5776f14f104b20066
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: Stephen Rothwell <sfr@canb.auug.org.au>
fs/fs-writeback.c
include/linux/backing-dev.h
include/linux/writeback.h
mm/page-writeback.c