summaryrefslogtreecommitdiffstats
path: root/crypto/gcm.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-07-09 01:00:34 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 19:33:24 +0200
commit4050377b509b326c14b275fedb2f69b46f37a7a9 (patch)
treedda709eadbb2f0bd388811c6efaaeff65349b824 /crypto/gcm.c
parentmemcg: use css_get/put when charging/uncharging kmem (diff)
downloadlinux-4050377b509b326c14b275fedb2f69b46f37a7a9.tar.xz
linux-4050377b509b326c14b275fedb2f69b46f37a7a9.zip
memcg: use css_get/put for swap memcg
Use css_get/put instead of mem_cgroup_get/put. A simple replacement will do. The historical reason that memcg has its own refcnt instead of always using css_get/put, is that cgroup couldn't be removed if there're still css refs, so css refs can't be used as long-lived reference. The situation has changed so that rmdir a cgroup will succeed regardless css refs, but won't be freed until css refs goes down to 0. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> 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 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions