linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Move page_assign_page_cgroup to VM_BUG_ON in free_hot_cold_page
@ 2007-12-19  6:18 Balbir Singh
  2007-12-19 17:14 ` Dave Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Balbir Singh @ 2007-12-19  6:18 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: Balbir Singh, LKML, Andrew Morton



Based on the recommendation and observations of Hugh Dickins,
page_cgroup_assign_cgroup() is not required. This patch replaces it with
a VM_BUG_ON, so that we can catch them in free_hot_cold_page()

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
---

 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/page_alloc.c~memory-controller-move-to-bug-on-in-free_hot_cold_page mm/page_alloc.c
--- linux-2.6.24-rc5/mm/page_alloc.c~memory-controller-move-to-bug-on-in-free_hot_cold_page	2007-12-19 11:31:46.000000000 +0530
+++ linux-2.6.24-rc5-balbir/mm/page_alloc.c	2007-12-19 11:33:45.000000000 +0530
@@ -995,7 +995,7 @@ static void fastcall free_hot_cold_page(
 
 	if (!PageHighMem(page))
 		debug_check_no_locks_freed(page_address(page), PAGE_SIZE);
-	page_assign_page_cgroup(page, NULL);
+	VM_BUG_ON(page_get_page_cgroup(page));
 	arch_free_page(page, 0);
 	kernel_map_pages(page, 1, 0);
 
_

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-12-20 17:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19  6:18 [PATCH] Move page_assign_page_cgroup to VM_BUG_ON in free_hot_cold_page Balbir Singh
2007-12-19 17:14 ` Dave Hansen
2007-12-20 13:14   ` Hugh Dickins
2007-12-20 13:51     ` Peter Zijlstra
2007-12-20 14:16       ` Hugh Dickins
2007-12-20 14:20         ` Peter Zijlstra
2007-12-20 16:24           ` Balbir Singh
2007-12-20 16:35             ` Dave Hansen
2007-12-20 17:12             ` Andrew Morton
2007-12-20 17:21               ` Hugh Dickins
2007-12-20 17:39                 ` Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).