]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: mark init_section_page_cgroup() properly
authorNamhyung Kim <namhyung@gmail.com>
Thu, 26 May 2011 23:25:29 +0000 (16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:35 +0000 (17:12 -0700)
commita7ab300c2dda2fed22e52bcc6537e37b3439536c
tree02686a62751fbdd2ad3125a53952c09381d7ac72
parent0aea7326d7d5f41d12c165a2ee3976f29b84e7e3
memcg: mark init_section_page_cgroup() properly

Commit 2ea9b12fae53 ("memcg: fix page_cgroup fatal error in FLATMEM")
removes call to alloc_bootmem() in the function so that it can be marked
as __meminit to reduce memory usage when MEMORY_HOTPLUG=n.

Also as the new helper function alloc_page_cgroup() is called only in the
function, it should be marked too.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_cgroup.c