diff options
author | 2020-06-01 21:49:36 -0700 | |
---|---|---|
committer | 2020-06-02 10:59:09 -0700 | |
commit | 1c4448edb71ab9da35a938244602cdd75809de2b (patch) | |
tree | 5b7e28ed32baed94bbfaf3e86b4d6ca39d148cd9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm, memcg: add workingset_restore in memory.stat (diff) | |
download | wireguard-linux-1c4448edb71ab9da35a938244602cdd75809de2b.tar.xz wireguard-linux-1c4448edb71ab9da35a938244602cdd75809de2b.zip |
mm: memcontrol: simplify value comparison between count and limit
When the variables count and limit have the same value(count == limit),
the result of min(margin, limit - count) statement should be 0 and the
variable margin is set to 0. So in this case, the min() statement is
not necessary and we can directly set the variable margin to 0.
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Link: http://lkml.kernel.org/r/1587479661-27237-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions