The patch titled memcg: page_cgroup array is never stored on reserved pages has been removed from the -mm tree. Its filename was memcg-page_cgroup-array-is-never-stored-on-reserved-pages.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: memcg: page_cgroup array is never stored on reserved pages From: Michal Hocko <mhocko@xxxxxxx> 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@xxxxxxx> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_cgroup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff -puN mm/page_cgroup.c~memcg-page_cgroup-array-is-never-stored-on-reserved-pages mm/page_cgroup.c --- a/mm/page_cgroup.c~memcg-page_cgroup-array-is-never-stored-on-reserved-pages +++ a/mm/page_cgroup.c @@ -153,11 +153,11 @@ static void free_page_cgroup(void *addr) vfree(addr); } else { struct page *page = virt_to_page(addr); - if (!PageReserved(page)) { /* Is bootmem ? */ - size_t table_size = - sizeof(struct page_cgroup) * PAGES_PER_SECTION; - free_pages_exact(addr, table_size); - } + size_t table_size = + sizeof(struct page_cgroup) * PAGES_PER_SECTION; + + BUG_ON(PageReserved(page)); + free_pages_exact(addr, table_size); } } #endif _ Patches currently in -mm which might be from mhocko@xxxxxxx are origin.patch memsw-remove-noswapaccount-kernel-parameter.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html