public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON()
@ 2008-02-18  5:59 Li Zefan
  2008-02-18  6:14 ` Balbir Singh
  2008-02-18  6:39 ` [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() YAMAMOTO Takashi
  0 siblings, 2 replies; 11+ messages in thread
From: Li Zefan @ 2008-02-18  5:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Balbir Singh, KAMEZAWA Hiroyuki, LKML, containers

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


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

end of thread, other threads:[~2008-02-18  8:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18  5:59 [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() Li Zefan
2008-02-18  6:14 ` Balbir Singh
2008-02-18  6:22   ` YAMAMOTO Takashi
2008-02-18  6:20     ` Balbir Singh
2008-02-18  6:47       ` Li Zefan
2008-02-18  7:01         ` Balbir Singh
2008-02-18  7:14           ` Li Zefan
2008-02-18  7:34           ` [PATCH] memcgroup: remove a useless VM_BUG_ON() Li Zefan
2008-02-18  8:12             ` Balbir Singh
2008-02-18  8:48             ` KAMEZAWA Hiroyuki
2008-02-18  6:39 ` [PATCH 2/3] memcgroup: fix typo in VM_BUG_ON() YAMAMOTO Takashi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox