From: Bob Liu Date: Fri, 13 Jan 2012 01:18:48 +0000 (-0800) Subject: page_cgroup: add helper function to get swap_cgroup X-Git-Tag: v3.3-rc1~81^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb4b7cc0724f178d4b24a2a566ea1e7cb120b82;p=pandora-kernel.git page_cgroup: add helper function to get swap_cgroup There are multiple places which need to get the swap_cgroup address, so add a helper function: static struct swap_cgroup *swap_cgroup_getsc(swp_entry_t ent, struct swap_cgroup_ctrl **ctrl); to simplify the code. Signed-off-by: Bob Liu Acked-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed