flex_proportions: Allow N events instead of 1
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 20 Mar 2021 20:34:54 +0000 (16:34 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:39 +0000 (07:49 -0400)
commitbe5f1797523004d0d9aaee81a523d86e3b890007
tree79cabae66b7506020d1b220c29a0c1b642867030
parentbd3488e7b4d61780eb3dfaca1cc6f4026bcffd48
flex_proportions: Allow N events instead of 1

When batching events (such as writing back N pages in a single I/O), it
is better to do one flex_proportion operation instead of N.  There is
only one caller of __fprop_inc_percpu_max(), and it's the one we're
going to change in the next patch, so rename it instead of adding a
compatibility wrapper.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
include/linux/flex_proportions.h
lib/flex_proportions.c
mm/page-writeback.c