summaryrefslogtreecommitdiff
path: root/include/linux/page_counter.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-06-02 07:49:45 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-02 20:59:09 +0300
commitff144e69f7331eff070f31edf22bc9123d6d6d27 (patch)
tree991e6abd950f1e87628aac197b9b16060840208f /include/linux/page_counter.h
parent8a5dbc657e1233c907f84f2c6192d3a3cf0026b3 (diff)
downloadlinux-ff144e69f7331eff070f31edf22bc9123d6d6d27.tar.xz
mm/memcg: move penalty delay clamping out of calculate_high_delay()
We will want to call calculate_high_delay() twice - once for memory and once for swap, and we should apply the clamp value to sum of the penalties. Clamping has to be applied outside of calculate_high_delay(). Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Shakeel Butt <shakeelb@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Chris Down <chris@chrisdown.name> Cc: Hugh Dickins <hughd@google.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Tejun Heo <tj@kernel.org> Link: http://lkml.kernel.org/r/20200527195846.102707-3-kuba@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/page_counter.h')
0 files changed, 0 insertions, 0 deletions