Skip to content

expose mem_cgroup + cleanups

Michal Hocko linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5memcg: export struct mem_cgroupinclude/linux/memcontrol.h include/linux/swap.h include/net/sock.h +4 more+349 -37813 replies
2/5memcg: get rid of mem_cgroup_root_css for !CONFIG_MEMCGinclude/linux/memcontrol.h+0 -20 replies
3/5memcg: get rid of extern for functions in memcontrol.hinclude/linux/memcontrol.h+8 -80 replies
4/5memcg: restructure mem_cgroup_can_attach()mm/memcontrol.c+32 -290 replies
5/5memcg, tcp_kmem: check for cg_proto in sock_update_memcgmm/memcontrol.c+1 -20 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchVladimir DavydovMichal Hocko
1/5R-b
2/5R-b
3/5R-b
4/5R-b A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] expose mem_cgroup + cleanups

Hi,
this is just the cleanup portion of the series posted previously here:
http://marc.info/?l=linux-kernel&m=143635871831843. I am still thinking about how to move on regarding mm_struct::owner but this is more tricky than originally anticipated. The cleanup still makes some sense IMO.

I have incorporated review feedback from Vladimir (thanks!) and dropped
http://marc.info/?l=linux-mm&m=143635849631722&w=2 because Vladimir didn't like it.

Diffstat:

 include/linux/memcontrol.h | 387 ++++++++++++++++++++++++++++++++++++++++-----
 include/linux/swap.h       |  10 +-
 include/net/sock.h         |  28 ----
 mm/memcontrol.c            | 378 ++++---------------------------------------
 mm/memory-failure.c        |   2 +-
 mm/slab_common.c           |   2 +-
 mm/vmscan.c                |   2 +-
 7 files changed, 390 insertions(+), 419 deletions(-)

Shortlog:
Michal Hocko (4):
memcg: export struct mem_cgroup
memcg: get rid of mem_cgroup_root_css for !CONFIG_MEMCG
memcg: get rid of extern for functions in memcontrol.h memcg, tcp_kmem: check for cg_proto in sock_update_memcg

Tejun Heo (1):
memcg: restructure mem_cgroup_can_attach()