[PATCH 2/3] memcgroup: fix typo in VM_BUG_ON()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Li Zefan
Date: Sunday, February 17, 2008 - 10:59 pm

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Li Zefan, (Sun Feb 17, 10:59 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Balbir Singh, (Sun Feb 17, 11:14 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Balbir Singh, (Sun Feb 17, 11:20 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), YAMAMOTO Takashi, (Sun Feb 17, 11:22 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), YAMAMOTO Takashi, (Sun Feb 17, 11:39 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Li Zefan, (Sun Feb 17, 11:47 pm)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Balbir Singh, (Mon Feb 18, 12:01 am)
Re: [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON(), Li Zefan, (Mon Feb 18, 12:14 am)
[PATCH] memcgroup: remove a useless VM_BUG_ON(), Li Zefan, (Mon Feb 18, 12:34 am)
Re: [PATCH] memcgroup: remove a useless VM_BUG_ON(), Balbir Singh, (Mon Feb 18, 1:12 am)
Re: [PATCH] memcgroup: remove a useless VM_BUG_ON(), KAMEZAWA Hiroyuki, (Mon Feb 18, 1:48 am)