On Tue 04-12-12 12:17:21, Michal Hocko wrote: > On Tue 04-12-12 16:36:11, Jeff Liu wrote: > > - Disable pages allocation for swap cgroup at system boot up stage. > > - Perform page allocation if there have child memcg alive, because the user > > might disabled one/more swap files/partitions for some reason. > > - Introduce a couple of helpers to deal with page allocation/free for swap cgroup. > > - Introduce a new static variable to indicate the status of child memcg create/remove. > > This approach doesn't work (unless I missed something). See bellow. Wait a second I have missed that ctrl->map is already initialized. Will get back to you... -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>