]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: page_cgroup array is never stored on reserved pages
authorMichal Hocko <mhocko@suse.cz>
Wed, 23 Mar 2011 23:42:41 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:33 +0000 (19:46 -0700)
commitb76931fe38ec4fd9e7b5e574c3ca3bc583334f9d
treed6c966290c7a8224171c850098767a6fbfa5747b
parent139318b83806d93182f96e723312b406e04ec82a
memcg: page_cgroup array is never stored on reserved pages

KAMEZAWA Hiroyuki noted that free_pages_cgroup doesn't have to check for
PageReserved because we never store the array on reserved pages (neither
alloc_pages_exact nor vmalloc use those pages).

So we can replace the check by a BUG_ON.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_cgroup.c