summaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorLi Zefan2013-07-09 01:00:30 +0200
committerLinus Torvalds2013-07-09 19:33:24 +0200
commit5347e5ae13710420eebbbd0b22c045685704da80 (patch)
tree61bc244a9938a28e7a1f96d2d7fb0c3dc8ac486b /mm/page-writeback.c
parentmemcg, kmem: fix reference count handling on the error path (diff)
downloadkernel-qcow2-linux-5347e5ae13710420eebbbd0b22c045685704da80.tar.gz
kernel-qcow2-linux-5347e5ae13710420eebbbd0b22c045685704da80.tar.xz
kernel-qcow2-linux-5347e5ae13710420eebbbd0b22c045685704da80.zip
memcg: use css_get() in sock_update_memcg()
Use css_get/css_put instead of mem_cgroup_get/put. Note, if at the same time someone is moving @current to a different cgroup and removing the old cgroup, css_tryget() may return false, and sock->sk_cgrp won't be initialized, which is fine. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Hugh Dickins <hughd@google.com> Cc: Tejun Heo <tj@kernel.org> Cc: Glauber Costa <glommer@openvz.org> Cc: 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/page-writeback.c')
0 files changed, 0 insertions, 0 deletions