summaryrefslogtreecommitdiff
path: root/mm/gup_test.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-12-14 19:06:28 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-15 12:13:39 -0800
commit378876b0e3782daacb7848db03679d6f76c82265 (patch)
treea5dbcf1c3407f68469924b61c2f2d46e89e58a4d /mm/gup_test.c
parent1a984c4e8200e0e58bb316f14a4bebb28d32d15a (diff)
downloadlinux-378876b0e3782daacb7848db03679d6f76c82265.tar.gz
linux-378876b0e3782daacb7848db03679d6f76c82265.tar.bz2
linux-378876b0e3782daacb7848db03679d6f76c82265.zip
mm: memcontrol: eliminate redundant check in __mem_cgroup_insert_exceeded()
The mz->usage_in_excess >= mz_node->usage_in_excess check is exactly the else case of mz->usage_in_excess < mz_node->usage_in_excess. So we could replace else if (mz->usage_in_excess >= mz_node->usage_in_excess) with else equally. Also drop the comment which doesn't really explain much. Link: https://lkml.kernel.org/r/20201012131607.10656-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/gup_test.c')
0 files changed, 0 insertions, 0 deletions