From: Tejun Heo Date: Sun, 1 Apr 2012 19:09:55 +0000 (-0700) Subject: memcg: always create memsw files if CONFIG_CGROUP_MEM_RES_CTLR_SWAP X-Git-Tag: v3.5-rc1~142^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af36f906c0f4c2ffa0482ecdf856a33dc88ae8c5;p=pandora-kernel.git memcg: always create memsw files if CONFIG_CGROUP_MEM_RES_CTLR_SWAP Instead of conditioning creation of memsw files on do_swap_account, always create the files if compiled-in and fail read/write attempts with -EOPNOTSUPP if !do_swap_account. This is suggested by KAMEZAWA to simplify memcg file creation so that it can use cgroup->subsys_cftypes. Signed-off-by: Tejun Heo Acked-by: KAMEZAWA Hiroyuki Acked-by: Li Zefan --- Reading git-diff-tree failed