diff options
author | Wanpeng Li <liwanp@linux.vnet.ibm.com> | 2012-08-01 01:46:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-01 03:42:49 +0200 |
commit | b214514592d2dcb0b9d14ee8dd14f3699e3b0a84 (patch) | |
tree | 317258b7f9229e56a26373c81551d24e7b83142f /samples/kfifo | |
parent | memcg: further prevent OOM with too many dirty pages (diff) | |
download | linux-b214514592d2dcb0b9d14ee8dd14f3699e3b0a84.tar.xz linux-b214514592d2dcb0b9d14ee8dd14f3699e3b0a84.zip |
memcg: add mem_cgroup_from_css() helper
Add a mem_cgroup_from_css() helper to replace open-coded invokations of
container_of(). To clarify the code and to add a little more type safety.
[akpm@linux-foundation.org: fix extensive breakage]
Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/kfifo')
0 files changed, 0 insertions, 0 deletions