)]}'
{
  "commit": "7d74b06f240f1bd1b4b68dd6fe84164d8bf4e315",
  "tree": "3b52304b322390a9b5782b4d498e5e0a14e3266b",
  "parents": [
    "32047e2a85f06633ee4c53e2d0346fbcd34e480b"
  ],
  "author": {
    "name": "KAMEZAWA Hiroyuki",
    "email": "kamezawa.hiroyu@jp.fujitsu.com",
    "time": "Wed Oct 27 15:33:41 2010 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Oct 27 18:03:09 2010 -0700"
  },
  "message": "memcg: use for_each_mem_cgroup\n\nIn memory cgroup management, we sometimes have to walk through\nsubhierarchy of cgroup to gather informaiton, or lock something, etc.\n\nNow, to do that, mem_cgroup_walk_tree() function is provided.  It calls\ngiven callback function per cgroup found.  But the bad thing is that it\nhas to pass a fixed style function and argument, \"void*\" and it adds much\ntype casting to memcontrol.c.\n\nTo make the code clean, this patch replaces walk_tree() with\n\n  for_each_mem_cgroup_tree(iter, root)\n\nAn iterator style call.  The good point is that iterator call doesn\u0027t have\nto assume what kind of function is called under it.  A bad point is that\nit may cause reference-count leak if a caller use \"break\" from the loop by\nmistake.\n\nI think the benefit is larger.  The modified code seems straigtforward and\neasy to read because we don\u0027t have misterious callbacks and pointer cast.\n\nSigned-off-by: KAMEZAWA Hiroyuki \u003ckamezawa.hiroyu@jp.fujitsu.com\u003e\nCc: Balbir Singh \u003cbalbir@in.ibm.com\u003e\nCc: Daisuke Nishimura \u003cnishimura@mxp.nes.nec.co.jp\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd845d25827ae3b0a8e75b2f91312329846137d7",
      "old_mode": 33188,
      "old_path": "mm/memcontrol.c",
      "new_id": "5e7a14d117c7726a21fb58bf430ec9e23896a743",
      "new_mode": 33188,
      "new_path": "mm/memcontrol.c"
    }
  ]
}
