KAMEZAWA Hiroyuki
94b6da5ab8
memcg: fix page_cgroup allocation
...
page_cgroup_init() is called from mem_cgroup_init(). But at this
point, we cannot call alloc_bootmem().
(and this caused panic at boot.)
This patch moves page_cgroup_init() to init/main.c.
Time table is following:
==
parse_args(). # we can trust mem_cgroup_subsys.disabled bit after this.
....
cgroup_init_early() # "early" init of cgroup.
....
setup_arch() # memmap is allocated.
...
page_cgroup_init();
mem_init(); # we cannot call alloc_bootmem after this.
....
cgroup_init() # mem_cgroup is initialized.
==
Before page_cgroup_init(), mem_map must be initialized. So,
I added page_cgroup_init() to init/main.c directly.
(*) maybe this is not very clean but
- cgroup_init_early() is too early
- in cgroup_init(), we have to use vmalloc instead of alloc_bootmem().
use of vmalloc area in x86-32 is important and we should avoid very large
vmalloc() in x86-32. So, we want to use alloc_bootmem() and added page_cgroup_init()
directly to init/main.c
[akpm@linux-foundation.org: remove unneeded/bad mem_cgroup_subsys declaration]
[akpm@linux-foundation.org: fix build]
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Tested-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-23 08:55:02 -07:00
..
2008-10-20 08:52:40 -07:00
2008-10-17 17:15:43 -03:00
2008-10-22 01:19:37 +02:00
2008-10-04 17:12:27 -04:00
2008-10-19 22:54:12 +02:00
2008-10-22 15:38:42 -07:00
2008-10-12 11:04:34 +02:00
2008-10-20 09:03:12 -07:00
2008-10-14 11:58:31 -07:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:00 +02:00
2008-09-29 17:56:56 -04:00
2008-10-13 11:55:12 +11:00
2008-10-13 21:51:51 +01:00
2008-09-03 15:41:57 -07:00
2008-10-16 11:21:38 -07:00
2008-08-29 16:24:07 -04:00
2008-10-15 15:54:56 -04:00
2008-09-12 16:30:20 -07:00
2008-10-20 16:07:19 +01:00
2008-09-17 16:54:26 +01:00
2008-10-20 11:01:52 -07:00
2008-08-12 10:13:38 +10:00
2008-10-16 11:21:51 -07:00
2008-10-10 22:39:31 +02:00
2008-10-16 11:21:39 -07:00
2008-10-16 11:21:39 -07:00
2008-10-20 08:50:25 -07:00
2008-10-20 08:52:42 -07:00
2008-10-16 11:21:38 -07:00
2008-10-17 09:29:55 -07:00
2008-10-23 08:20:34 -07:00
2008-10-17 09:29:55 -07:00
2008-10-17 08:46:57 +02:00
2008-08-12 16:07:27 -07:00
2008-10-20 08:52:32 -07:00
2008-08-12 16:07:30 -07:00
2008-08-14 22:59:43 +10:00
2008-10-20 08:52:34 -07:00
2008-10-20 08:52:38 -07:00
2008-10-16 11:21:32 -07:00
2008-09-05 11:11:51 +02:00
2008-08-21 09:50:24 +02:00
2008-09-24 16:38:17 -07:00
2008-10-16 11:21:33 -07:00
2008-10-14 10:35:08 +02:00
2008-08-26 10:26:54 +02:00
2008-10-14 12:12:02 -07:00
2008-09-08 19:25:24 +02:00
2008-10-09 13:52:43 -04:00
2008-09-06 19:22:15 +02:00
2008-10-20 08:52:40 -07:00
2008-08-14 09:35:23 +10:00
2008-08-29 15:50:04 +10:00
2008-08-25 01:18:05 -04:00
2008-09-09 13:27:22 +02:00
2008-10-10 13:37:12 +01:00
2008-10-16 09:24:52 -07:00
2008-10-13 09:51:43 -07:00
2008-08-28 11:49:15 -05:00
2008-08-28 11:49:15 -05:00
2008-10-15 14:24:08 +02:00
2008-09-19 10:20:41 +02:00
2008-10-16 16:53:04 +02:00
2008-10-13 16:05:06 +01:00
2008-10-15 12:46:51 +01:00
2008-10-16 09:24:47 -07:00
2008-10-16 16:53:13 +02:00
2008-10-09 08:56:13 +02:00
2008-10-12 12:05:55 +02:00
2008-08-20 13:19:51 -07:00
2008-10-16 11:21:30 -07:00
2008-10-20 08:52:37 -07:00
2008-10-16 11:21:30 -07:00
2008-10-20 08:52:36 -07:00
2008-10-09 08:56:19 +02:00
2008-10-08 19:44:18 -04:00
2008-10-15 22:21:11 +02:00
2008-08-12 16:07:31 -07:00
2008-10-20 08:52:34 -07:00
2008-08-23 12:14:12 -07:00
2008-10-14 12:31:14 -07:00
2008-10-14 10:39:27 +02:00
2008-10-16 16:08:57 +02:00
2008-10-09 08:56:08 +02:00
2008-09-22 07:29:31 +01:00
2008-10-16 11:21:40 -07:00
2008-10-14 23:51:02 +02:00
2008-10-14 23:51:02 +02:00
2008-10-20 13:14:06 +02:00
2008-10-17 17:25:11 -03:00
2008-08-08 15:13:27 +01:00
2008-08-28 08:33:23 +02:00
2008-10-16 11:21:38 -07:00
2008-10-15 16:03:01 -07:00
2008-10-17 18:09:14 +02:00
2008-09-24 16:18:02 -04:00
2008-10-13 19:01:08 -07:00
2008-10-13 19:01:08 -07:00
2008-10-13 19:01:08 -07:00
2008-09-22 21:28:11 -07:00
2008-10-01 01:30:19 -07:00
2008-08-15 19:52:19 -07:00
2008-10-09 11:59:55 -07:00
2008-09-22 21:28:11 -07:00
2008-10-13 19:01:08 -07:00
2008-10-01 07:30:02 -07:00
2008-10-07 15:34:37 -07:00
2008-10-20 13:35:07 -07:00
2008-10-15 14:24:08 +02:00
2008-10-20 13:23:01 -07:00
2008-10-16 11:21:33 -07:00
2008-10-16 15:17:40 -07:00
2008-10-15 14:24:08 +02:00
2008-08-15 09:26:14 +10:00
2008-10-18 14:05:18 +02:00
2008-10-18 14:05:18 +02:00
2008-09-22 01:15:02 -07:00
2008-10-12 09:37:01 -02:00
2008-08-16 16:46:57 -07:00
2008-10-16 20:00:24 -04:00
2008-10-23 08:55:01 -07:00
2008-10-16 11:21:32 -07:00
2008-10-16 11:21:31 -07:00
2008-10-20 08:52:40 -07:00
2008-10-20 13:23:01 -07:00
2008-10-20 13:35:07 -07:00
2008-08-15 08:35:42 -07:00
2008-10-12 11:44:37 -07:00
2008-10-09 08:56:04 +02:00
2008-10-16 11:21:29 -07:00
2008-10-14 10:34:22 +02:00
2008-10-15 14:25:35 +02:00
2008-10-15 14:25:39 +02:00
2008-09-23 22:01:33 +01:00
2008-10-22 20:40:19 -04:00
2008-10-14 10:35:08 +02:00
2008-09-01 09:47:16 +02:00
2008-08-11 15:25:07 +02:00
2008-10-13 09:47:43 +11:00
2008-10-09 08:56:06 +02:00
2008-10-10 23:16:16 -04:00
2008-10-14 10:39:28 +02:00
2008-10-20 08:52:39 -07:00
2008-09-13 14:41:52 -07:00
2008-10-20 08:50:25 -07:00
2008-10-20 08:52:31 -07:00
2008-10-20 08:52:39 -07:00
2008-10-20 08:52:30 -07:00
2008-10-14 10:37:17 +02:00
2008-10-20 08:52:39 -07:00
2008-10-16 11:52:08 -07:00
2008-10-20 13:35:07 -07:00
2008-10-16 11:21:30 -07:00
2008-08-29 14:37:23 -07:00
2008-08-29 14:37:23 -07:00
2008-09-05 06:33:59 +02:00
2008-08-26 10:37:20 -07:00
2008-10-13 19:01:08 -07:00
2008-10-08 11:35:01 +02:00
2008-10-01 07:03:24 -07:00
2008-10-06 20:08:26 -04:00
2008-10-17 13:06:45 -04:00
2008-10-07 17:22:20 -04:00
2008-10-14 19:23:17 -04:00
2008-09-15 16:48:19 -04:00
2008-09-08 19:25:24 +02:00
2008-10-13 10:55:47 +11:00
2008-10-21 15:17:48 +11:00
2008-10-23 08:55:02 -07:00
2008-10-20 08:52:30 -07:00
2008-10-20 08:52:32 -07:00
2008-10-20 08:50:26 -07:00
2008-10-16 11:21:49 -07:00
2008-10-13 10:10:37 -07:00
2008-10-20 10:53:48 -07:00
2008-10-20 10:54:32 -07:00
2008-08-18 13:48:04 -07:00
2008-10-20 13:23:01 -07:00
2008-10-09 12:50:59 -04:00
2008-09-05 09:24:30 +02:00
2008-10-05 13:33:42 -07:00
2008-09-14 17:24:26 +02:00
2008-10-05 11:16:16 -07:00
2008-10-08 16:38:41 -07:00
2008-10-16 11:21:48 -07:00
2008-08-20 15:40:32 -07:00
2008-08-29 14:37:23 -07:00
2008-09-12 16:29:34 -07:00
2008-10-16 09:24:51 -07:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:45 -07:00
2008-09-24 15:45:48 +02:00
2008-09-01 02:42:54 +04:00
2008-10-07 14:26:19 +11:00
2008-10-23 08:55:01 -07:00
2008-08-15 17:15:23 +02:00
2008-10-20 08:52:39 -07:00
2008-09-02 19:21:38 -07:00
2008-10-16 11:21:46 -07:00
2008-10-16 11:21:46 -07:00
2008-10-02 15:53:13 -07:00
2008-10-03 10:36:08 +02:00
2008-08-15 17:03:06 +02:00
2008-09-30 12:08:41 +02:00
2008-08-15 17:54:39 +02:00
2008-08-15 08:35:42 -07:00
2008-10-16 11:21:30 -07:00
2008-09-05 14:39:37 -07:00
2008-08-22 16:29:57 -04:00
2008-10-14 10:39:05 +02:00
2008-10-20 08:52:40 -07:00
2008-10-16 11:21:30 -07:00
2008-09-22 19:51:15 -07:00
2008-10-20 13:19:56 -07:00
2008-08-28 10:47:42 +10:00
2008-10-20 08:52:39 -07:00
2008-10-13 09:51:39 -07:00
2008-10-13 09:51:40 -07:00
2008-10-01 16:13:54 +09:00
2008-10-07 14:22:33 -07:00
2008-09-23 08:09:13 -07:00
2008-09-09 17:41:42 +02:00
2008-10-17 08:46:56 +02:00
2008-10-05 11:16:16 -07:00
2008-08-11 09:30:24 +02:00
2008-08-11 09:30:24 +02:00
2008-10-03 18:22:18 -07:00
2008-08-26 00:19:27 +10:00
2008-10-03 11:46:14 -05:00
2008-08-15 08:35:42 -07:00
2008-10-20 08:52:40 -07:00
2008-10-20 08:52:31 -07:00
2008-10-16 11:21:28 -07:00
2008-10-16 11:21:47 -07:00
2008-10-20 08:52:42 -07:00
2008-10-16 11:21:32 -07:00
2008-10-07 14:43:06 -07:00
2008-10-16 11:21:45 -07:00
2008-10-13 09:51:40 -07:00
2008-10-17 18:13:38 +02:00
2008-10-20 13:14:06 +02:00
2008-09-24 17:33:13 +02:00
2008-09-05 14:39:38 -07:00
2008-10-14 10:39:31 +02:00
2008-10-13 09:51:43 -07:00
2008-10-13 09:51:44 -07:00
2008-09-14 17:24:27 +02:00
2008-08-20 23:22:22 +01:00
2008-10-17 14:41:02 -07:00
2008-09-17 16:54:35 +01:00
2008-10-12 09:36:49 -02:00
2008-10-20 08:52:32 -07:00
2008-10-20 08:52:31 -07:00
2008-10-13 09:51:42 -07:00
2008-10-16 11:21:31 -07:00
2008-09-17 16:54:23 +01:00
2008-10-02 22:48:34 +01:00
2008-10-16 10:09:17 -04:00
2008-10-05 13:33:42 -07:00