]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sun, 15 Aug 2021 03:07:54 +0000 (23:07 -0400)
commit7c11a8777027d2063e5f025bbfef2c7d28932c33
tree2649fe1a79b3c093646ab3fc339c27fec4ce9f2a
parentbec0740c046e63e17d7454ecf32704dcea633d9b
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