diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-10-27 00:09:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-27 01:26:35 +0200 |
commit | 1c2d479a119b84feacbe4de782016f1bf1ad16dc (patch) | |
tree | 75f2e6cd750a91ea76e336aab97fdb50b0cb62c4 /mm/page_alloc.c | |
parent | mm/page_alloc.c: initialize num_movable in move_freepages() (diff) | |
download | linux-1c2d479a119b84feacbe4de782016f1bf1ad16dc.tar.xz linux-1c2d479a119b84feacbe4de782016f1bf1ad16dc.zip |
mm/memcontrol.c: convert mem_cgroup_id::ref to refcount_t type
This will allow to use generic refcount_t interfaces to check counters
overflow instead of currently existing VM_BUG_ON(). The only difference
after the patch is VM_BUG_ON() may cause BUG(), while refcount_t fires
with WARN(). But this seems not to be significant here, since such the
problems are usually caught by syzbot with panic-on-warn enabled.
Link: http://lkml.kernel.org/r/153910718919.7006.13400779039257185427.stgit@localhost.localdomain
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Reviewed-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>
Cc: Andrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions