OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON()
[PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() [message #27507] Mon, 18 February 2008 05:59
Li Zefan is currently offline  Li Zefan
Messages: 90
Registered: February 2008
Member
No need for VM_BUG_ON(pc), since 'pc' is the list entry. This should
be VM_BUG_ON(page).

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
---
 mm/memcontrol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6bded84..c2959ee 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -534,7 +534,7 @@ unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
 		if (scan >= nr_to_scan)
 			break;
 		page = pc->page;
-		VM_BUG_ON(!pc);
+		VM_BUG_ON(!page);
 
 		if (unlikely(!PageLRU(page)))
 			continue;
-- 
1.5.4.rc3

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [PATCH 1/3] memcgroup: fix and update documentation
Next Topic: [PATCH 3/3] memcgroup: return negative error code in mem_cgroup_create()
Goto Forum:
  


Current Time: Sat Aug 02 20:57:08 GMT 2025

Total time taken to generate the page: 1.11178 seconds