[PATCH 07/12] memcg: always create memsw files if CONFIG_CGROUP_MEM_RES_CTLR_SWAP
KAMEZAWA Hiroyuki
kamezawa.hiroyu at jp.fujitsu.com
Thu Mar 22 00:23:10 UTC 2012
(2012/03/22 7:17), Tejun Heo wrote:
> 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 at kernel.org>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
seems O.K. to me.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
More information about the Containers
mailing list