summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-01 12:09:55 -0700
committerTejun Heo <tj@kernel.org>2012-04-01 12:09:55 -0700
commitaf36f906c0f4c2ffa0482ecdf856a33dc88ae8c5 (patch)
treebbeb3d558e52dc064c74f028907b5b525f88cd14 /net/ipv4
parent4baf6e33251b37f111e21289f8ee71fe4cce236e (diff)
downloadop-kernel-dev-af36f906c0f4c2ffa0482ecdf856a33dc88ae8c5.zip
op-kernel-dev-af36f906c0f4c2ffa0482ecdf856a33dc88ae8c5.tar.gz
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 <tj@kernel.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud